20 lines
454 B
JavaScript
20 lines
454 B
JavaScript
'use strict';
|
|
|
|
module.exports = (app) => {
|
|
const { INTEGER, CHAR, STRING, TEXT, DATE } = app.Sequelize;
|
|
|
|
const CNtripMsg = app.model2.define('cntrip-msg', {
|
|
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
|
user_uid: CHAR(15),
|
|
mountpoint: STRING(100),
|
|
original_msg: TEXT,
|
|
created_at: DATE
|
|
}, {
|
|
freezeTableName: true,
|
|
timestamp: true,
|
|
createdAt: true,
|
|
updatedAt: false
|
|
});
|
|
|
|
return CNtripMsg;
|
|
}; |