北斗启航科技教育平台管理系统
This commit is contained in:
26
app/model3/Organization.js
Normal file
26
app/model3/Organization.js
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (app) => {
|
||||
const { INTEGER, CHAR, STRING, DATE } = app.Sequelize;
|
||||
|
||||
const Organization = app.model3.define('organization', {
|
||||
id: { type: INTEGER(5), primaryKey: true, autoIncrement: true },
|
||||
uid: CHAR(16),
|
||||
organization_name: STRING(100),
|
||||
address: STRING(300),
|
||||
liaison_name: STRING(20),
|
||||
phone: CHAR(11),
|
||||
email: STRING(254),
|
||||
other_information: STRING(200),
|
||||
post_code: CHAR(6),
|
||||
created_at: DATE,
|
||||
updated_at: DATE,
|
||||
},{
|
||||
freezeTableName: true,
|
||||
timestamp: true,
|
||||
createdAt: true,
|
||||
updatedAt: true,
|
||||
});
|
||||
|
||||
return Organization;
|
||||
};
|
||||
Reference in New Issue
Block a user