thread.ts 281 B

1234567891011121314
  1. import db from '../db'
  2. import { DataTypes } from 'sequelize'
  3. const Thread = db.define('thread', {
  4. id: {
  5. type: DataTypes.INTEGER,
  6. primaryKey: true,
  7. },
  8. createdAt: DataTypes.INTEGER,
  9. title: DataTypes.TEXT,
  10. nrInCategory: DataTypes.INTEGER,
  11. })
  12. export default Thread