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.
43 lines
942 B
43 lines
942 B
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const PointDevice = sequelize.define("pointDevice", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "point_device_id_uindex"
|
|
},
|
|
pointId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "point_id",
|
|
autoIncrement: false
|
|
},
|
|
deviceId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "device_id",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "point_device",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.PointDevice = PointDevice;
|
|
return PointDevice;
|
|
};
|