Add chat_id column to the users table

This commit is contained in:
LoRiot 2022-10-16 16:29:21 +03:00
parent cdae6b0c8f
commit 77b949730e

View file

@ -8,7 +8,7 @@ async def init_tables(connection: Connection):
init_users_query = """ init_users_query = """
CREATE TABLE users ( CREATE TABLE users (
user_id bigint PRIMARY KEY, user_id bigint PRIMARY KEY,
is_admin boolean DEFAULT FALSE chat_id bigint
); );
""" """
await connection.execute(init_users_query) await connection.execute(init_users_query)