const { DataTypes } = require('sequelize'); const attributes = { id: { type: DataTypes.INTEGER(11), allowNull: false, defaultValue: null, primaryKey: true, autoIncrement: true, comment: null, field: "id" }, user_id: { type: DataTypes.INTEGER(11), allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "user_id" }, createdAt: { type: DataTypes.DATE, allowNull: false, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "createdAt" }, updatedAt: { type: DataTypes.DATE, allowNull: false, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "updatedAt" }, a1: { type: DataTypes.STRING(255), allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "a1" }, a2: { type: DataTypes.STRING(255), allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "a2" }, v1: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "v1" }, v2: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, primaryKey: false, autoIncrement: false, comment: null, field: "v2" }, text: { type: DataTypes.TEXT, allowNull: false, defaultValue: false, primaryKey: false, autoIncrement: false, comment: null, field: "text" }, public: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false, primaryKey: false, autoIncrement: false, comment: null, field: "public" }, accepted: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: false, primaryKey: false, autoIncrement: false, comment: null, field: "accepted" }, }; const options = { tableName: "proposals", comment: "", indexes: [] }; db["Proposal"] = db.define("proposals_model", attributes, options);