added is_premium to db

This commit is contained in:
kolay
2022-07-21 23:34:37 +03:00
parent 1f711e5b5f
commit 4bf9e40aa9
2 changed files with 3 additions and 1 deletions
@@ -9,6 +9,7 @@ exports.up = async (knex, Promise) => (await knex.schema.hasTable('users'))
table.string('last_name')
table.string('username')
table.string('language_code')
table.boolean('is_premium')
table.timestamp('created_at').defaultTo(knex.fn.now())
table.primary('id')
+2 -1
View File
@@ -18,9 +18,10 @@
"dependencies": {
"chess": "^0.4.9",
"dotenv": "^7.0.0",
"knex": "^0.20.13",
"knex": "^2.2.0",
"module-alias": "^2.2.2",
"mysql2": "^2.2.5",
"pg": "^8.7.3",
"telegraf": "^3.37.0"
},
"devDependencies": {