北斗导航定位通信综合实践赛服务系统
This commit is contained in:
22
app/model3/BDCard.js
Normal file
22
app/model3/BDCard.js
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, DATE } = app.Sequelize;
|
||||
|
||||
const BDCard = app.model3.define('bd-card', {
|
||||
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||||
card_id: CHAR(8),
|
||||
card_imsi: CHAR(18),
|
||||
type: INTEGER(3),
|
||||
status: INTEGER(3),
|
||||
created_at: DATE,
|
||||
updated_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: true,
|
||||
});
|
||||
|
||||
return BDCard;
|
||||
};
|
||||
Reference in New Issue
Block a user