init
This commit is contained in:
26
api/model/sys_user.js
Normal file
26
api/model/sys_user.js
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
const Sequelize = require("sequelize");
|
||||
// 系统用户表
|
||||
module.exports = (db) => {
|
||||
return db.define("sys_user", {
|
||||
name: {
|
||||
type: Sequelize.STRING(100),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "名称",
|
||||
},
|
||||
password: {
|
||||
type: Sequelize.STRING(100),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
comment: "密码",
|
||||
},
|
||||
roleId: {
|
||||
type: Sequelize.INTEGER,
|
||||
allowNull: false,
|
||||
comment: "角色id",
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user