mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Set up sequelize
This commit is contained in:
parent
6833439a4a
commit
87c08df02b
47 changed files with 2171 additions and 6 deletions
17
src/sequelize/models/log.js
Normal file
17
src/sequelize/models/log.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { DataTypes } from 'sequelize'
|
||||
const model = (sequelize) => {
|
||||
return sequelize.define('log', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER,
|
||||
autoIncrement: true,
|
||||
primaryKey: true
|
||||
},
|
||||
action: DataTypes.STRING,
|
||||
data: {
|
||||
type: DataTypes.TEXT,
|
||||
allowNull: true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export default model
|
||||
Loading…
Add table
Add a link
Reference in a new issue