3
1

category.ts 375 B

1234567891011121314151617
  1. import db from '../db'
  2. import { DataTypes } from 'sequelize'
  3. const Category = db.define('category', {
  4. id: {
  5. type: DataTypes.INTEGER,
  6. primaryKey: true,
  7. },
  8. createdAt: DataTypes.INTEGER,
  9. title: DataTypes.TEXT,
  10. description: DataTypes.TEXT,
  11. position: DataTypes.INTEGER,
  12. deleted: DataTypes.BOOLEAN,
  13. archived: DataTypes.BOOLEAN,
  14. })
  15. export default Category