mirror of
https://github.com/house-of-vanity/conf_bot.git
synced 2026-05-07 06:51:22 +00:00
test
This commit is contained in:
Regular → Executable
Regular → Executable
+2
-1
@@ -2,6 +2,7 @@ BEGIN TRANSACTION;
|
||||
-- DROP TABLE IF EXISTS `word`;
|
||||
CREATE TABLE IF NOT EXISTS `word` (
|
||||
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
`is_russian` INTEGER NOT NULL,
|
||||
`word` TEXT UNIQUE
|
||||
);
|
||||
-- DROP TABLE IF EXISTS `user`;
|
||||
@@ -21,7 +22,7 @@ CREATE TABLE IF NOT EXISTS `relations` (
|
||||
`conf_id` INTEGER NOT NULL,
|
||||
`date` INTEGER NOT NULL,
|
||||
FOREIGN KEY(`conf_id`) REFERENCES `conf`(`id`),
|
||||
FOREIGN KEY(`word_id`) REFERENCES `word`(`id`) ON DELETE CASCADE,
|
||||
FOREIGN KEY(`word_id`) REFERENCES `word`(`id`),
|
||||
FOREIGN KEY(`user_id`) REFERENCES `user`(`id`)
|
||||
);
|
||||
-- DROP TABLE IF EXISTS `conf`;
|
||||
|
||||
Executable
BIN
Binary file not shown.
Executable
+3
@@ -0,0 +1,3 @@
|
||||
[bot]
|
||||
telegram_key = 53004316d:dv0YexIXGHvmNojcD2mUaslKs0
|
||||
telegram_api = https://api.telegram.org/
|
||||
Regular → Executable
Reference in New Issue
Block a user