From 926d7a66d8db6f71756249dc6fa2fc719aefd4e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B6=D0=B8=D0=B3=D0=B8=D0=BD=20=D0=91=D0=BE?= =?UTF-8?q?=D0=B3=D0=B4=D0=B0=D0=BD=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Wed, 21 Dec 2022 18:05:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B8=D0=BB=20=D1=81=D1=85=D0=B5=D0=BC=D1=83=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/bot-telegram_profile/bot-telegram_profile.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/bot-telegram_profile/bot-telegram_profile.ts b/source/bot-telegram_profile/bot-telegram_profile.ts index 3a76044..5f7344b 100644 --- a/source/bot-telegram_profile/bot-telegram_profile.ts +++ b/source/bot-telegram_profile/bot-telegram_profile.ts @@ -26,6 +26,14 @@ bot.api.setMyDefaultAdministratorRights({rights, // Подключение базы данных организации к базе данных бота database.run("ATTACH DATABASE \"organization.sqlite\" AS organization"); +// Определение схемы базы данных бота +database.run(` +CREATE TABLE users ( + user_per_rowid INT NOT NULL + REFERENCES people (rowid), + user_id INT NOT NULL +);`) + // Обработка сообщений боту, в данном случае только команд