22 lines
542 B
JavaScript
22 lines
542 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
module.exports = (app) => {
|
||
|
|
const { INTEGER, CHAR, DATE } = app.Sequelize;
|
||
|
|
|
||
|
|
const CSubscribe = app.model2.define('csubscribe', {
|
||
|
|
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
|
||
|
|
user_uid: CHAR(15),
|
||
|
|
business: INTEGER(3),
|
||
|
|
status: INTEGER(3),
|
||
|
|
type: INTEGER(3),
|
||
|
|
created_at: DATE,
|
||
|
|
updated_at: DATE,
|
||
|
|
},{
|
||
|
|
freezeTableName: true,
|
||
|
|
timestamp: true,
|
||
|
|
createdAt: true,
|
||
|
|
updatedAt: true,
|
||
|
|
});
|
||
|
|
|
||
|
|
return CSubscribe;
|
||
|
|
};
|