channel.ts 491 B

123456789101112131415161718192021
  1. import db from '../db'
  2. import { DataTypes } from 'sequelize'
  3. const Channel = db.define('channel', {
  4. id: {
  5. type: DataTypes.INTEGER,
  6. primaryKey: true,
  7. },
  8. created: DataTypes.INTEGER,
  9. handle: DataTypes.STRING,
  10. title: DataTypes.STRING,
  11. description: DataTypes.TEXT,
  12. avatar: DataTypes.TEXT,
  13. banner: DataTypes.TEXT,
  14. content: DataTypes.STRING,
  15. curation: DataTypes.STRING,
  16. principal: DataTypes.INTEGER,
  17. publicationStatus: DataTypes.BOOLEAN,
  18. })
  19. export default Channel