Akulij
|
4d2d344ea2
|
fix: update is_admin only on insert (in upsert query)
|
2025-04-26 00:26:29 +03:00 |
|
Akulij
|
0a64b25044
|
fix: used wrong collection in get_literal
|
2025-04-26 00:25:32 +03:00 |
|
Akulij
|
41ac1d7cea
|
create db migration function
will contain indexes
|
2025-04-26 00:21:41 +03:00 |
|
Akulij
|
08167143aa
|
migrate db to mongodb from diesel(postgres)
|
2025-04-25 22:44:50 +03:00 |
|
Akulij
|
e2d2cebed8
|
cargo fmt
|
2025-04-25 21:05:54 +03:00 |
|
Akulij
|
a940ef5e83
|
move towards generefication of DB implementation
|
2025-04-22 22:51:54 +03:00 |
|
Akulij
|
b6ae5170a4
|
add support for media group in user configurable messages
|
2025-04-21 22:45:30 +03:00 |
|
Akulij
|
0bc97a9f58
|
fix: in drop_media_except handle case when group is null
|
2025-04-21 22:04:17 +03:00 |
|
Akulij
|
bdb5f10d34
|
add test for drop_media_except
|
2025-04-21 22:03:59 +03:00 |
|
Akulij
|
138a15ec67
|
improve test_is_media_group_exists
|
2025-04-21 22:03:35 +03:00 |
|
Akulij
|
a2f135ccda
|
feature: add support for video in user configurable messages
|
2025-04-21 20:23:09 +03:00 |
|
Akulij
|
5492beec41
|
add support for photo in message
|
2025-04-18 14:51:22 +03:00 |
|
Akulij
|
0950ccb150
|
create db.is_media_group_exists
|
2025-04-18 13:52:45 +03:00 |
|
Akulij
|
539b5ee48b
|
update db tests
|
2025-04-18 13:32:38 +03:00 |
|
Akulij
|
92c4f803eb
|
add support for media_group
|
2025-04-18 13:32:21 +03:00 |
|
Akulij
|
8e3f1496ae
|
move db.rs to db/mod.rs for better file structure
|
2025-04-18 13:22:59 +03:00 |
|
Akulij
|
687aae2475
|
make media_group_id column optional
|
2025-04-18 13:21:45 +03:00 |
|
Akulij
|
e56b7284df
|
fix: use unwrap instead of is_ok in tests to get error messages
|
2025-04-18 13:16:41 +03:00 |
|
Akulij
|
95cc880b4f
|
add media_group_id column to media table
|
2025-04-18 13:13:30 +03:00 |
|
Akulij
|
ffb2b8b7fe
|
fix warnings of unused dependencies
|
2025-04-18 12:56:54 +03:00 |
|
Akulij
|
f362ff1fda
|
create db tests
|
2025-04-10 21:53:41 +09:00 |
|
Akulij
|
cc351a0a9b
|
fix: use str instead of string in add_media method
|
2025-04-10 21:53:15 +09:00 |
|
Akulij
|
e46ba0dbbf
|
fix: wrong fileid type
WAS: i64
SHOULD: String
|
2025-04-10 21:16:54 +09:00 |
|
Akulij
|
827a5022d1
|
implement db functions to manipulate media table
|
2025-04-10 21:15:42 +09:00 |
|
Akulij
|
ed211f2d72
|
create table media
|
2025-04-10 21:11:14 +09:00 |
|
Akulij
|
412a54d647
|
cargo fmt
|
2025-04-10 20:55:32 +09:00 |
|
Akulij
|
1006fbe5c1
|
fix: request first_name in user creation db function
it is required column in table
|
2025-04-10 20:46:23 +09:00 |
|
Akulij
|
a9919a9307
|
handle edit command in any case
|
2025-04-10 20:12:15 +09:00 |
|
Akulij
|
4a37792c0c
|
change edit_msg_handler logic for more extensibility
|
2025-04-10 20:06:52 +09:00 |
|
Akulij
|
2bac30e711
|
create callback_handler
|
2025-04-10 19:27:31 +09:00 |
|
Akulij
|
a58fca01f9
|
fix: ask only for chat_id instead of whole message in answer_message in
case of generalization
|
2025-04-10 02:34:41 +09:00 |
|
Akulij
|
089ef3218c
|
move out message answer into function
|
2025-04-10 02:18:28 +09:00 |
|
Akulij
|
cca87da403
|
cargo fmt
|
2025-04-08 01:13:49 +09:00 |
|
Akulij
|
98be2b0f7d
|
display event buttons
|
2025-04-08 01:12:35 +09:00 |
|
Akulij
|
e9a44a221d
|
add test events on init
|
2025-04-08 01:11:45 +09:00 |
|
Akulij
|
2bad5d79c7
|
cargo add chrono_tz
|
2025-04-08 00:47:13 +09:00 |
|
Akulij
|
f7ced4b780
|
use timezoned timestamp in event date
|
2025-04-08 00:42:21 +09:00 |
|
Akulij
|
15813901d8
|
regenerate models
|
2025-04-08 00:02:31 +09:00 |
|
Akulij
|
9ac297cf5a
|
fix: make all reservation fields required
|
2025-04-08 00:00:01 +09:00 |
|
Akulij
|
07a10fae0e
|
create reservatoin status getter that returns enum
|
2025-04-07 23:24:18 +09:00 |
|
Akulij
|
21081c3206
|
regenerate models.rs
|
2025-04-07 23:16:44 +09:00 |
|
Akulij
|
e4051479d4
|
stringify reservation table status field
reason: no easy to setup enums support in diesel
|
2025-04-07 23:15:08 +09:00 |
|
Akulij
|
6e0a21f569
|
create event and reservation table
|
2025-04-07 22:36:12 +09:00 |
|
Akulij
|
90379aa218
|
extend users table
|
2025-04-07 22:07:00 +09:00 |
|
Akulij
|
8e3ebc936c
|
cargo fmt
|
2025-04-06 17:58:29 +09:00 |
|
Akulij
|
d74e691009
|
implement bot message editing feature
|
2025-04-06 17:58:05 +09:00 |
|
Akulij
|
b2a27e3330
|
delete comments of code :/
|
2025-04-03 23:16:28 +09:00 |
|
Akulij
|
66cf414350
|
create get/set literal function
|
2025-04-03 23:15:42 +09:00 |
|
Akulij
|
3f2ee083cd
|
fix: make literals field value not optional
|
2025-04-03 23:01:07 +09:00 |
|
Akulij
|
c977500ee4
|
rustfmt
|
2025-04-03 22:51:32 +09:00 |
|