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.
71 lines
1.6 KiB
71 lines
1.6 KiB
/* eslint-disable*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const ImgRecognition = sequelize.define("imgRecognition", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "img_recognition_id_uindex"
|
|
},
|
|
path: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "图片在七牛的路径",
|
|
primaryKey: false,
|
|
field: "path",
|
|
autoIncrement: false
|
|
},
|
|
addTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "add_time",
|
|
autoIncrement: false
|
|
},
|
|
recognitionTime: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "recognition_time",
|
|
autoIncrement: false
|
|
},
|
|
warning: {
|
|
type: DataTypes.BOOLEAN,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "是否预警",
|
|
primaryKey: false,
|
|
field: "warning",
|
|
autoIncrement: false
|
|
},
|
|
describe: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "描述信息",
|
|
primaryKey: false,
|
|
field: "describe",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "img_recognition",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.ImgRecognition = ImgRecognition;
|
|
return ImgRecognition;
|
|
};
|