/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const V2TenderChapterVersions = sequelize.define("v2TenderChapterVersions", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "ID(自增)", primaryKey: true, field: "id", autoIncrement: true }, tenderId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "tender_id", autoIncrement: false, references: { key: "id", model: "v2Tenders" } }, chapterId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "关联章节ID", primaryKey: false, field: "chapter_id", autoIncrement: false, references: { key: "id", model: "v2TenderChapters" } }, version: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "版本号", primaryKey: false, field: "version", autoIncrement: false }, isCurrent: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: null, comment: "是否当前版本", primaryKey: false, field: "is_current", autoIncrement: false }, content: { type: DataTypes.TEXT, allowNull: false, defaultValue: null, comment: "内容", primaryKey: false, field: "content", autoIncrement: false }, createAt: { type: DataTypes.DATE, allowNull: false, defaultValue: sequelize.literal('CURRENT_TIMESTAMP'), comment: "创建时间", primaryKey: false, field: "create_at", autoIncrement: false } }, { tableName: "v2_tender_chapter_versions", comment: "", indexes: [] }); dc.models.V2TenderChapterVersions = V2TenderChapterVersions; return V2TenderChapterVersions; };