UNPKG

@speakr/speakr-module-services

Version:
80 lines (77 loc) 1.64 kB
'use strict'; let _ = require('underscore'); module.exports = function (sequelize, DataTypes) { return sequelize.define('creatives', { id_hash: { type: DataTypes.STRING, allowNull: true }, content: { type: DataTypes.STRING }, content_type: { type: DataTypes.ENUM('image', 'video', 'link', 'text only'), allowNull: true }, video_file_name: { type: DataTypes.STRING }, image_file_name: { type: DataTypes.STRING }, image_link: { type: DataTypes.STRING, allowNull: true, field: 'uploaded_image_link' }, creative_sent_at: DataTypes.DATE, wrapper_link: { type: DataTypes.STRING, allowNull: true }, link: { type: DataTypes.STRING, allowNull: true }, permalink: { type: DataTypes.STRING, allowNull: true }, permalink_id: { type: DataTypes.STRING, allowNull: true }, submission_status: { type: DataTypes.STRING, allowNull: true }, submission_status_message: { type: DataTypes.TEXT, allowNull: true }, video_link: { type: DataTypes.STRING, allowNull: true, field: 'uploaded_video_link' }, created_at: DataTypes.DATE, deleted_at: DataTypes.DATE, scheduled_at: { type: DataTypes.DATE, allowNull: true }, network_id: { type: DataTypes.INTEGER }, offer_price: { type: DataTypes.FLOAT }, discount: { type: DataTypes.BOOLEAN }, initiatives_accounts_invites_id: DataTypes.INTEGER, youtube_video_title: DataTypes.STRING }, { paranoid: true }); };