北斗短报文通信服务平台
This commit is contained in:
20
app/model2/BindCrecord.js
Normal file
20
app/model2/BindCrecord.js
Normal file
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, DATE } = app.Sequelize;
|
||||
|
||||
const BindCrecord = app.model2.define('bind-crecord', {
|
||||
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
card_id: CHAR(8),
|
||||
type: INTEGER(1),
|
||||
created_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: false,
|
||||
});
|
||||
|
||||
return BindCrecord;
|
||||
};
|
||||
24
app/model2/CShortMsg.js
Normal file
24
app/model2/CShortMsg.js
Normal file
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, TEXT, DATE } = app.Sequelize;
|
||||
|
||||
const CShortMsg = app.model2.define('cshort-msg', {
|
||||
id: { type: INTEGER(11), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
card_id: CHAR(8),
|
||||
receiver_address: CHAR(8),
|
||||
original_msg: TEXT,
|
||||
send_type: INTEGER(1),
|
||||
encode_type: INTEGER(1),
|
||||
msg_data: TEXT,
|
||||
created_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: false,
|
||||
});
|
||||
|
||||
return CShortMsg;
|
||||
};
|
||||
34
app/model2/CSide.js
Normal file
34
app/model2/CSide.js
Normal file
@@ -0,0 +1,34 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
||||
|
||||
const CSide = app.model2.define('c-side', {
|
||||
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||||
uid: CHAR(15),
|
||||
salt: CHAR(24),
|
||||
status: INTEGER(3),
|
||||
role: INTEGER(3),
|
||||
avatar: CHAR(15),
|
||||
account_name: STRING(20),
|
||||
password: CHAR(64),
|
||||
user_name: STRING(20),
|
||||
phone: CHAR(11),
|
||||
gender: INTEGER(1),
|
||||
age: INTEGER(3),
|
||||
email: STRING(254),
|
||||
address: STRING(300),
|
||||
post_code: CHAR(6),
|
||||
created_at: DATE,
|
||||
updated_at: DATE,
|
||||
login_at: DATE,
|
||||
login_status: INTEGER(3)
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: true,
|
||||
});
|
||||
|
||||
return CSide;
|
||||
};
|
||||
18
app/model2/CuserBind.js
Normal file
18
app/model2/CuserBind.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR } = app.Sequelize;
|
||||
|
||||
const CuserBind = app.model2.define('cuser-bind', {
|
||||
id: { type: INTEGER(8), primaryKey: true, autoIncrement: true },
|
||||
user_uid: CHAR(15),
|
||||
card_id: CHAR(8),
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: false,
|
||||
createdAt: false,
|
||||
updatedAt: false,
|
||||
});
|
||||
|
||||
return CuserBind;
|
||||
};
|
||||
Reference in New Issue
Block a user