UNPKG

ghost

Version:

The professional publishing platform

12 lines (10 loc) 713 B
const {addTable} = require('../../utils'); module.exports = addTable('members_subscription_created_events', { id: {type: 'string', maxlength: 24, nullable: false, primary: true}, created_at: {type: 'dateTime', nullable: false}, member_id: {type: 'string', maxlength: 24, nullable: false, references: 'members.id', cascadeDelete: true}, subscription_id: {type: 'string', maxlength: 24, nullable: false, references: 'members_stripe_customers_subscriptions.id', cascadeDelete: true}, attribution_id: {type: 'string', maxlength: 24, nullable: true}, attribution_type: {type: 'string', maxlength: 50, nullable: true}, attribution_url: {type: 'string', maxlength: 2000, nullable: true} });