18 lines
443 B
JavaScript
18 lines
443 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, STRING } = app.Sequelize;
|
|
|
|
const TuserSNBind = app.model4.define('tuser-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 TuserSNBind;
|
|
}; |