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.
64 lines
1.4 KiB
64 lines
1.4 KiB
1 year ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const QrcodeLabelsQrcode = sequelize.define("qrcode_labels_qrcode", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
},
|
||
|
labelId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "label_id",
|
||
|
autoIncrement: false,
|
||
|
references: {
|
||
|
model: "qrcode_labels",
|
||
|
key: "id"
|
||
|
}
|
||
|
},
|
||
|
qrcodeId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "qrcode_id",
|
||
|
autoIncrement: false,
|
||
|
references: {
|
||
|
model: "qrcode",
|
||
|
key: "id"
|
||
|
}
|
||
|
},
|
||
|
publicityInfoId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "publicity_info_id",
|
||
|
autoIncrement: false,
|
||
|
references: {
|
||
|
model: "publicity_info",
|
||
|
key: "id"
|
||
|
}
|
||
|
},
|
||
|
}, {
|
||
|
tableName: "qrcode_labels_qrcode",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
|
||
|
dc.models.QrcodeLabelsQrcode = QrcodeLabelsQrcode;
|
||
|
return QrcodeLabelsQrcode;
|
||
|
};
|