Files
Ucharify_api/app/models/paymentplan.model.js
T
2019-01-29 23:47:06 -08:00

21 lines
358 B
JavaScript

'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
},
amount: {
type: DataTypes.INTEGER,
allowNull: false
}
});
return PaymentPlan;
};