This commit is contained in:
oleh 2025-04-06 15:27:22 +02:00
parent d1e5ec019d
commit 7e35793ca1
48 changed files with 8815 additions and 8810 deletions

View File

@ -35,12 +35,17 @@ except Exception as e:
def init_db():
create_users_query = """
CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
email TEXT UNIQUE NOT NULL,
google_id TEXT,
password TEXT
);
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
email TEXT UNIQUE NOT NULL,
google_id TEXT,
password TEXT,
phone TEXT,
role TEXT,
bio TEXT,
picture TEXT
);
"""
create_chat_history_query = """
CREATE TABLE IF NOT EXISTS chat_history (