Compare commits
2 commits
2ce7587d0a
...
8556316cd8
Author | SHA1 | Date | |
---|---|---|---|
|
8556316cd8 | ||
|
b5e57e80e9 |
1 changed files with 12 additions and 1 deletions
|
@ -13,9 +13,20 @@ CREATE TABLE IF NOT EXISTS telegram_user_matrix_chats (
|
|||
matrix_chat_id INTEGER NOT NULL,
|
||||
FOREIGN KEY(telegram_user_id) REFERENCES telegram_users(id),
|
||||
FOREIGN KEY(matrix_chat_id) REFERENCES matrix_chats(id)
|
||||
)
|
||||
);
|
||||
'''
|
||||
|
||||
TELEGRAM_USERS_SQL = '''
|
||||
CREATE TABLE IF NOT EXISTS telegram_users
|
||||
(
|
||||
id INTEGER PRIMARY KEY NOT NULL (15),
|
||||
first_name TEXT NOT NULL (50),
|
||||
last_name TEXT (50),
|
||||
username TEXT (50),
|
||||
);
|
||||
'''
|
||||
|
||||
|
||||
def main():
|
||||
config = Config(
|
||||
db_path=os.environ['DB_PATH'],
|
||||
|
|
Loading…
Reference in a new issue