This commit is contained in:
Alexandr Godless
2018-02-19 17:22:55 +03:00
parent 97ed251351
commit 4feaaa4a20
12 changed files with 79 additions and 21 deletions

0
assets/cert.sh Normal file → Executable file
View File

3
assets/main.db.sql Normal file → Executable file
View File

@ -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`;

BIN
assets/mystem Executable file

Binary file not shown.

3
assets/settings.ini.example Executable file
View File

@ -0,0 +1,3 @@
[bot]
telegram_key = 53004316d:dv0YexIXGHvmNojcD2mUaslKs0
telegram_api = https://api.telegram.org/

0
assets/stop-word.ru Normal file → Executable file
View File