Akulij
|
09f7e76d96
|
create DB::init function
semantically, its better to have function, that fully prepares db
(connect and migrate)
|
2025-04-27 21:02:05 +03:00 |
|
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
|
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
|
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
|
f362ff1fda
|
create db tests
|
2025-04-10 21:53:41 +09:00 |
|
Akulij
|
ed211f2d72
|
create table media
|
2025-04-10 21:11:14 +09:00 |
|
Akulij
|
cca87da403
|
cargo fmt
|
2025-04-08 01:13:49 +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
|
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
|
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 |
|
Akulij
|
f5deffc3b3
|
create table literals
|
2025-04-03 22:48:30 +09:00 |
|
Akulij
|
c93d2f1ee8
|
create messages table
|
2025-04-03 22:14:38 +09:00 |
|
Akulij
|
5cadb2bd76
|
rustfmt
|
2025-04-03 04:57:46 +09:00 |
|
Akulij
|
afdd35e731
|
create db files
|
2025-04-03 02:30:54 +09:00 |
|