Files
authentication/app/model/BSubscribe.js

22 lines
541 B
JavaScript
Raw Permalink Normal View History

'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, DATE } = app.Sequelize;
const BSubscribe = app.model.define('bsubscribe', {
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 BSubscribe;
};