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.
48 lines
1.1 KiB
48 lines
1.1 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const CameraRemark = sequelize.define("cameraRemark", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "camera_remark_id_uindex"
|
|
},
|
|
cameraId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "camera_id",
|
|
autoIncrement: false,
|
|
references: {
|
|
key: "id",
|
|
model: "camera"
|
|
}
|
|
},
|
|
remark: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "remark",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "camera_remark",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.CameraRemark = CameraRemark;
|
|
|
|
return CameraRemark;
|
|
};
|