event.ts 294 B

123456789101112131415
  1. import db from '../db'
  2. import { DataTypes } from 'sequelize'
  3. const Event = db.define('event', {
  4. id: {
  5. type: DataTypes.INTEGER,
  6. autoIncrement: true,
  7. primaryKey: true,
  8. },
  9. section: DataTypes.STRING,
  10. method: DataTypes.STRING,
  11. data: DataTypes.STRING,
  12. })
  13. export default Event