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.
52 lines
1.2 KiB
52 lines
1.2 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const AppInspection = sequelize.define("appInspection", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "app_inspection_id_uindex"
|
|
},
|
|
pepProjectId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "pep_project_id",
|
|
autoIncrement: false
|
|
},
|
|
createTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "create_time",
|
|
autoIncrement: false
|
|
},
|
|
screenshot: {
|
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "截图存储路径",
|
|
primaryKey: false,
|
|
field: "screenshot",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "app_inspection",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.AppInspection = AppInspection;
|
|
return AppInspection;
|
|
};
|