Set up sequelize

This commit is contained in:
Jorge Vargas 2024-08-19 00:28:48 -06:00
parent 6833439a4a
commit 87c08df02b
47 changed files with 2171 additions and 6 deletions

View 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