diff options
| author | Adam Soltys <[email protected]> | 2022-09-22 02:57:54 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-22 02:57:54 +0000 |
| commit | 3f18d0c8ab508553062bf92a17295961f91a4822 (patch) | |
| tree | 4608fc9f51820cdd48abc6352ddaf83f0e1208e3 /db | |
| parent | 45ae80bcde258622108c6d66e404660b0c037eb8 (diff) | |
| parent | 918813a6e49f9d05828f6fb205614f9d288269e1 (diff) | |
| download | coinos-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.js | 1 | ||||
| -rw-r--r-- | db/models/users.js | 9 |
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, |
