Browse Source

(*)模型增加主键id

master
Archer_cdm 2 years ago
parent
commit
ed98f53969
  1. 7
      api/app/lib/models/reserveItemReport.js

7
api/app/lib/models/reserveItemReport.js

@ -5,6 +5,13 @@ module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ReserveItemReport = sequelize.define("reserveItemReport", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
field: "id",
autoIncrement: true,
},
year: {
type: DataTypes.INTEGER,
allowNull: true,

Loading…
Cancel
Save