1
This commit is contained in:
33
api/model/sys_project.js
Normal file
33
api/model/sys_project.js
Normal file
@@ -0,0 +1,33 @@
|
||||
const dayjs = require("dayjs");
|
||||
const db = require("../../middleware/db");
|
||||
const Sequelize = require("sequelize");
|
||||
module.exports = sys_project = db.define("sys_project", {
|
||||
name: {
|
||||
comment: "项目名称",
|
||||
type: Sequelize.STRING(50),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
},
|
||||
key: {
|
||||
comment: "项目key",
|
||||
type: Sequelize.STRING(50),
|
||||
allowNull: false,
|
||||
defaultValue: "",
|
||||
},
|
||||
|
||||
project_type_id: {
|
||||
comment: "项目类型",
|
||||
type: Sequelize.INTEGER(11),
|
||||
allowNull: false,
|
||||
defaultValue: "0",
|
||||
},
|
||||
|
||||
remark: {
|
||||
comment: "备注",
|
||||
type: Sequelize.STRING(500),
|
||||
allowNull: 1,
|
||||
defaultValue: "",
|
||||
},
|
||||
});
|
||||
|
||||
// sys_project.sync({ force: true });
|
||||
Reference in New Issue
Block a user