23 lines
567 B
JavaScript
23 lines
567 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Plans = sequelize.define('plans', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
master_plan_id: type.INTEGER,
|
|
plan_name: type.TEXT,
|
|
price: type.INTEGER,
|
|
currency: {
|
|
type: type.TEXT,
|
|
defaultValue: '$'
|
|
},
|
|
duration: type.TEXT,
|
|
description: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return Plans;
|
|
} |