aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-22 02:57:54 +0000
committerAdam Soltys <[email protected]>2022-09-22 02:57:54 +0000
commit3f18d0c8ab508553062bf92a17295961f91a4822 (patch)
tree4608fc9f51820cdd48abc6352ddaf83f0e1208e3 /db
parent45ae80bcde258622108c6d66e404660b0c037eb8 (diff)
parent918813a6e49f9d05828f6fb205614f9d288269e1 (diff)
downloadcoinos-server-3f18d0c8ab508553062bf92a17295961f91a4822.tar.gz
coinos-server-3f18d0c8ab508553062bf92a17295961f91a4822.zip
Merge remote-tracking branch 'origin/master' into prod2
Diffstat (limited to 'db')
-rw-r--r--db/index.js1
-rw-r--r--db/models/users.js9
2 files changed, 9 insertions, 1 deletions
diff --git a/db/index.js b/db/index.js
index 3d5aab36..8c94a4d3 100644
--- a/db/index.js
+++ b/db/index.js
@@ -1,7 +1,6 @@
import Sequelize from "@sequelize/core";
import db from "$db/db";
-import dbOptions from "$config/knexfile";
db.authenticate().catch(err => {
console.debug("Error connecting to database: " + err.message);
diff --git a/db/models/users.js b/db/models/users.js
index cfd31cb7..7cbaf8e6 100644
--- a/db/models/users.js
+++ b/db/models/users.js
@@ -20,6 +20,15 @@ const attributes = {
comment: null,
field: "address"
},
+ theme: {
+ type: DataTypes.STRING,
+ allowNull: true,
+ defaultValue: false,
+ primaryKey: false,
+ autoIncrement: false,
+ comment: null,
+ field: "theme"
+ },
profile: {
type: DataTypes.BOOLEAN,
allowNull: true,