18 lines
442 B
JavaScript
18 lines
442 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
module.exports = (app) => {
|
||
|
|
const { INTEGER, CHAR, STRING } = app.Sequelize;
|
||
|
|
|
||
|
|
const BuserSNBind = app.model.define('buser-snbind', {
|
||
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||
|
|
user_uid: CHAR(15),
|
||
|
|
sn_number: STRING(8),
|
||
|
|
},{
|
||
|
|
freezeTableName: true,
|
||
|
|
timestamp: true,
|
||
|
|
createdAt: false,
|
||
|
|
updatedAt: false,
|
||
|
|
});
|
||
|
|
|
||
|
|
return BuserSNBind;
|
||
|
|
};
|