27 lines
709 B
JavaScript
27 lines
709 B
JavaScript
module.exports = (sequelize, type) => {
|
|
return sequelize.define('plan_transactions', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
master_plan_id: type.INTEGER,
|
|
plan_id: type.INTEGER,
|
|
user_id: type.INTEGER,
|
|
name: type.TEXT,
|
|
email: type.TEXT,
|
|
address: type.TEXT,
|
|
country: type.TEXT,
|
|
city: type.TEXT,
|
|
state: type.TEXT,
|
|
zip: type.TEXT,
|
|
card_number: type.TEXT,
|
|
expire_month: type.TEXT,
|
|
expire_year: type.TEXT,
|
|
cvv: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
} |