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.
 
 
 
 

98 lines
2.3 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const Camera = sequelize.define("camera", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "camera_id_uindex"
},
siteId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "工地id",
primaryKey: false,
field: "site_id",
autoIncrement: false,
},
userId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "工地id",
primaryKey: false,
field: "user_id",
autoIncrement: false,
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "name",
autoIncrement: false
},
type: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "type",
autoIncrement: false
},
online: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "online",
autoIncrement: false
},
channelNo: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "channelNo",
autoIncrement: false
},
serialNo: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "serialNo",
autoIncrement: false
},
vender: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "vender",
autoIncrement: false
},
}, {
tableName: "camera",
comment: "摄像头",
indexes: []
});
dc.models.Camera = Camera;
return Camera;
};