aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
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,