21 lines
483 B
JavaScript
21 lines
483 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
|
|
|
const CNtripRecord = app.model2.define('cntrip-record', {
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
|
user_uid: CHAR(15),
|
|
mountpoint: STRING(100),
|
|
befor_edit: STRING(100),
|
|
created_at: DATE,
|
|
updated_at: DATE
|
|
}, {
|
|
freezeTableName: true,
|
|
timestamp: true,
|
|
createdAt: true,
|
|
updatedAt: true
|
|
});
|
|
|
|
return CNtripRecord;
|
|
}; |