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.
35 lines
741 B
35 lines
741 B
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const DeviceModel = sequelize.define("deviceModel", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "device_model_pk"
|
|
},
|
|
modelName: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "model_name",
|
|
autoIncrement: false
|
|
},
|
|
|
|
}, {
|
|
tableName: "device_model",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.DeviceModel = DeviceModel;
|
|
return DeviceModel;
|
|
};
|