You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
151 lines
3.5 KiB
151 lines
3.5 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const V2Tenders = sequelize.define("v2Tenders", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "ID(自增)",
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true
|
|
},
|
|
type: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "类型",
|
|
primaryKey: false,
|
|
field: "type",
|
|
autoIncrement: false
|
|
},
|
|
name: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "名称",
|
|
primaryKey: false,
|
|
field: "name",
|
|
autoIncrement: false
|
|
},
|
|
fileUrl: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "招标文件URL",
|
|
primaryKey: false,
|
|
field: "file_url",
|
|
autoIncrement: false
|
|
},
|
|
annex: {
|
|
type: DataTypes.ARRAY(DataTypes.TEXT),
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "附件",
|
|
primaryKey: false,
|
|
field: "annex",
|
|
autoIncrement: false
|
|
},
|
|
completeRatingItems: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "完整评分项",
|
|
primaryKey: false,
|
|
field: "complete_rating_items",
|
|
autoIncrement: false
|
|
},
|
|
technologyRatingItems: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "技术评分项",
|
|
primaryKey: false,
|
|
field: "technology_rating_items",
|
|
autoIncrement: false
|
|
},
|
|
businessRatingItems: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "商务评分项",
|
|
primaryKey: false,
|
|
field: "business_rating_items",
|
|
autoIncrement: false
|
|
},
|
|
ratingItem: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "使用的评分项",
|
|
primaryKey: false,
|
|
field: "rating_item",
|
|
autoIncrement: false
|
|
},
|
|
previewChapters: {
|
|
type: DataTypes.JSONB,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "预览目录",
|
|
primaryKey: false,
|
|
field: "preview_chapters",
|
|
autoIncrement: false
|
|
},
|
|
requirements: {
|
|
type: DataTypes.TEXT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "标书整体编写要求(暗标)",
|
|
primaryKey: false,
|
|
field: "requirements",
|
|
autoIncrement: false
|
|
},
|
|
status: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "状态",
|
|
primaryKey: false,
|
|
field: "status",
|
|
autoIncrement: false
|
|
},
|
|
creator: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "创建人",
|
|
primaryKey: false,
|
|
field: "creator",
|
|
autoIncrement: false
|
|
},
|
|
createAt: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
|
|
comment: "创建时间",
|
|
primaryKey: false,
|
|
field: "create_at",
|
|
autoIncrement: false
|
|
},
|
|
updateAt: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: sequelize.literal('CURRENT_TIMESTAMP'),
|
|
comment: "更新时间",
|
|
primaryKey: false,
|
|
field: "update_at",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "v2_tenders",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.V2Tenders = V2Tenders;
|
|
return V2Tenders;
|
|
};
|