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.
64 lines
1.4 KiB
64 lines
1.4 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const ProblemReportFile = sequelize.define("problemReportFile", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true
|
|
},
|
|
reportId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "reportId",
|
|
autoIncrement: false,
|
|
references: {
|
|
key: "id",
|
|
model: "tProblemReport"
|
|
}
|
|
},
|
|
filePath: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "filePath",
|
|
autoIncrement: false
|
|
},
|
|
fileSize: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "fileSize",
|
|
autoIncrement: false
|
|
},
|
|
fileName: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "fileName",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "problem_report_file",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.ProblemReportFile = ProblemReportFile;
|
|
return ProblemReportFile;
|
|
};
|