working on new tables for payments

This commit is contained in:
Arjun Patel
2019-01-29 19:55:32 -08:00
parent ad26f7b6fd
commit d6643c32f9
8 changed files with 154 additions and 13 deletions
+4
View File
@@ -5,6 +5,10 @@ module.exports = (sequelize, DataTypes) => {
primaryKey: true,
autoIncrement: true
},
stripe_id: {
type: DataTypes.UUID,
defaultValue: null
},
first_name: {
type: DataTypes.STRING,
allowNull: false
+24
View File
@@ -0,0 +1,24 @@
'use strict';
module.exports = (sequelize, DataTypes) => {
const PaymentPlan = sequelize.define('payment_plans', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true
},
plan_id: {
type: DataTypes.UUID,
allowNull: false
},
subscription_id: {
type: DataTypes.UUID,
allowNull: false
},
amount: {
type: DataTypes.INTEGER,
allowNull: false
}
});
return PaymentPlan;
};