Advertisement
Guest User

Entry post model

a guest
Dec 18th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   id: {
  3.     type: Sequelize.UUID,
  4.     primaryKey: true,
  5.     defaultValue: Sequelize.UUIDV4,
  6.     allowNull: false
  7.   },
  8.   message: {
  9.     type: Sequelize.STRING(4096)
  10.   },
  11.   platformPostedTo: {type: Sequelize.STRING},
  12.   postUrl: {type: Sequelize.STRING},
  13.   // since we don't have API access to instagram, a separate process checks that they actually posted
  14.   instagramVerified: {
  15.     type: Sequelize.BOOLEAN,
  16.     defaultValue: false
  17.   },
  18.   comments: {
  19.     type: Sequelize.INTEGER,
  20.     defaultValue: 0
  21.   },
  22.   likes: {
  23.     type: Sequelize.INTEGER,
  24.     defaultValue: 0
  25.   },
  26.   retweets: {
  27.     type: Sequelize.INTEGER,
  28.     defaultValue: 0
  29.   },
  30.   views: {
  31.     type: Sequelize.INTEGER,
  32.     defaultValue: 0
  33.   },
  34.   impressions: {
  35.     type: Sequelize.INTEGER,
  36.     defaultValue: 0
  37.   },
  38.   viewsAvg: {
  39.     type: Sequelize.DOUBLE,
  40.     defaultValue: 0
  41.   },
  42.   viewsTenSec: {
  43.     type: Sequelize.DOUBLE,
  44.     defaultValue: 0
  45.   },
  46.  
  47.   followers: {
  48.     type: Sequelize.INTEGER,
  49.     defaultValue: null,
  50.     allowNull: true
  51.   },
  52.   isPostPrivateOrDeleted: {
  53.     type: Sequelize.BOOLEAN,
  54.     defaultValue: false
  55.   },
  56.   assetUrl: {
  57.     type: Sequelize.STRING
  58.   },
  59.   assetThumbnailUrl: {
  60.     type: Sequelize.STRING
  61.   },
  62.   assetType: {
  63.     type: Sequelize.STRING
  64.   }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement