Files
ntrip-server/app/model/BSide.js

30 lines
666 B
JavaScript
Raw Normal View History

2026-05-12 17:43:03 +08:00
'use strict';
module.exports = (app) => {
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
const BSide = app.model.define('b-side', {
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
uid: CHAR(15),
salt: CHAR(24),
status: INTEGER(3),
role: INTEGER(3),
account_name: STRING(20),
password: CHAR(64),
organization: CHAR(16),
user_name: STRING(20),
phone: CHAR(11),
msg: STRING(300),
created_at: DATE,
updated_at: DATE,
login_at: DATE,
login_status: INTEGER(3)
}, {
freezeTableName: true,
timestamp: true,
createdAt: true,
updatedAt: true
});
return BSide;
};