channel.js 721 B

123456789101112131415161718192021
  1. "use strict";
  2. exports.__esModule = true;
  3. var db_1 = require("../db");
  4. var sequelize_1 = require("sequelize");
  5. var Channel = db_1["default"].define('channel', {
  6. id: {
  7. type: sequelize_1.DataTypes.INTEGER,
  8. primaryKey: true
  9. },
  10. createdAt: sequelize_1.DataTypes.INTEGER,
  11. handle: sequelize_1.DataTypes.STRING,
  12. title: sequelize_1.DataTypes.STRING,
  13. description: sequelize_1.DataTypes.TEXT,
  14. avatar: sequelize_1.DataTypes.TEXT,
  15. banner: sequelize_1.DataTypes.TEXT,
  16. content: sequelize_1.DataTypes.STRING,
  17. curation: sequelize_1.DataTypes.STRING,
  18. principal: sequelize_1.DataTypes.INTEGER,
  19. publicationStatus: sequelize_1.DataTypes.BOOLEAN
  20. });
  21. exports["default"] = Channel;