aboutsummaryrefslogtreecommitdiffstats
path: root/db/models
diff options
context:
space:
mode:
Diffstat (limited to 'db/models')
-rw-r--r--db/models/proposals.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/db/models/proposals.js b/db/models/proposals.js
index ca3de8eb..44f2f796 100644
--- a/db/models/proposals.js
+++ b/db/models/proposals.js
@@ -1,4 +1,4 @@
-const { DataTypes } = require('sequelize');
+const { DataTypes } = require("sequelize");
const attributes = {
id: {
@@ -10,6 +10,24 @@ const attributes = {
comment: null,
field: "id"
},
+ a1_id: {
+ type: DataTypes.INTEGER(11),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "a1_id"
+ },
+ a2_id: {
+ type: DataTypes.INTEGER(11),
+ allowNull: true,
+ defaultValue: null,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "a2_id"
+ },
user_id: {
type: DataTypes.INTEGER(11),
allowNull: true,
@@ -46,24 +64,6 @@ const attributes = {
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.DOUBLE,
allowNull: true,
@@ -126,4 +126,4 @@ const options = {
indexes: []
};
-db["Proposal"] = db.define("proposals_model", attributes, options);
+db.Proposal = db.define("proposals_model", attributes, options);