mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 21:11:39 +01:00
move lootbox cooldown to redis because of timezone garbage
This commit is contained in:
@@ -13,8 +13,7 @@ export const users = pgTable('users', {
|
||||
id: integer().primaryKey().notNull(),
|
||||
username: varchar().notNull(),
|
||||
balance: integer().default(0).notNull(),
|
||||
inventory: jsonb().$type<inventory>().default({}).notNull(),
|
||||
lastlootbox: timestamp().default(new Date(0)).notNull()
|
||||
inventory: jsonb().$type<inventory>().default({}).notNull()
|
||||
});
|
||||
|
||||
export const usersRelations = relations(users, ({ many }) => ({
|
||||
|
||||
Reference in New Issue
Block a user