20 lines
506 B
JavaScript
20 lines
506 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
|
|
|
const BindBSNrecord = app.model.define('bind-bsnrecord', {
|
|
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
|
|
user_uid: CHAR(15),
|
|
sn_number: STRING(8),
|
|
type: INTEGER(1),
|
|
created_at: DATE,
|
|
},{
|
|
freezeTableName: true,
|
|
timestamp: true,
|
|
createdAt: true,
|
|
updatedAt: false,
|
|
});
|
|
|
|
return BindBSNrecord;
|
|
}; |