46 Commits

Author SHA1 Message Date
b774d2b3c9 style(backend): improve error handling 2025-10-10 01:37:01 +03:00
d124229308 fix(backend/infrastructure/persistence/postgres): some fixes on FileRepository methods 2025-10-10 00:31:51 +03:00
bf7a11076f fix(backend/infrastructure/persistence/postgres): add testing connection to db and improve error messages 2025-10-09 21:01:38 +03:00
c7176fadf6 fix(backend/domain): fix typo in error code 2025-10-09 01:46:10 +03:00
bc4354bf7b refactor(backend/domain): get rid of pgx types 2025-10-09 01:45:43 +03:00
00ab98072b feat(backend/repositories): add get tags by file method
refactor(backend/domain): start switching from pgx types
2025-10-09 01:39:19 +03:00
c39d82fafd refactor(backend): switch to DDD 2025-10-09 00:59:30 +03:00
4e0fc431e2 refactor(backend/domain): rename domain.go -> entity.go 2025-10-08 20:20:51 +03:00
7384751d6b fix(backend/storage/postgres): fix FileGetAccess function 2025-07-05 15:38:31 +03:00
49952c62ef refactor(backend): change backend file structure 2025-07-05 14:50:44 +03:00
057ba22b18 feat(backend/db): add function to get user's rights to a file 2025-07-04 23:21:53 +03:00
35d41a46c0 fix(backend/db): fix error and status handling in some functions 2025-07-04 22:46:00 +03:00
dbc34a8e0d feat(db): add recursive function to add tags to file including autotags 2025-07-04 02:32:47 +03:00
912c7b80a3 feat(backend/db): add basic CRUD functions for files 2025-07-04 00:37:06 +03:00
900770ff36 docs(erd): add can_create column to system.users 2025-07-03 20:19:45 +03:00
7062cb630e feat(backend/models): add CanCreate attribute to user model 2025-07-03 20:18:47 +03:00
436f164ab9 feat(db): add can_create column to system.users 2025-07-03 20:17:44 +03:00
d9ca913620 refactor(backend/models): make file's Metadata not nullable 2025-07-03 20:10:42 +03:00
153020b9c7 refactor(db): make metadata in data.files not nullable 2025-07-03 19:33:51 +03:00
effcd2c073 feat(db): add is_deleted column to data.files 2025-07-03 19:00:55 +03:00
78885b3656 docs(erd): add is_deleted column to data.files 2025-07-03 18:57:53 +03:00
828d611f4d fix(backend/db): set status code 200 when no error in handleDBError 2025-07-03 18:34:48 +03:00
82bd446a85 feat(backend/models): add aggregated fields to full file, tag, pool models 2025-07-03 18:23:46 +03:00
24075e5a76 style(backend/models): change JSON names to camelCase 2025-07-03 18:07:33 +03:00
27184bf17a refactor(backend/models): separate core, item and full models 2025-07-03 18:02:46 +03:00
ec17dfb0ce feat(backend/db): add database error handler 2025-07-03 17:31:17 +03:00
6e3328ca83 refactor(db): make metadata in data.files nullable 2025-07-03 16:19:34 +03:00
164ea9a6c8 feat(db): add uuid_extract_timestamp function 2025-07-03 16:18:44 +03:00
761babfa1a refactor(backend/models): use pgtype for nullable fields 2025-07-03 16:16:44 +03:00
59eacd6bc5 refactor(backend/db): remove ctx argument from transaction wrapper 2025-07-03 15:35:56 +03:00
5ac528be05 feat(backend/db): add util functions
`sortToSQL` and unimplemented `filterToSQL`
2025-07-03 14:55:30 +03:00
ad3c77b40e feat(backend/db): add transaction wrapper 2025-07-03 03:00:03 +03:00
e807d61b05 init(backend/db): initialize db handler 2025-07-03 02:53:06 +03:00
429213f29c refactor(backend/models): objects.go -> models.go 2025-07-03 02:52:59 +03:00
ace4fa1c0a feat(backend/models): add pagination and slice 2025-07-03 02:52:53 +03:00
d543101054 init(backend/models): add objects models 2025-07-03 02:52:28 +03:00
b1587f05cc refactor(db): rename schema access -> acl 2025-07-03 02:26:50 +03:00
9230b9a5dc docs(erd): rename schema access -> acl 2025-07-03 02:24:40 +03:00
be65d0623b init(backend): initialize backend 2025-07-03 00:10:25 +03:00
4221abe905 init(db): add database schema 2025-07-02 23:30:53 +03:00
a27ae7d4ab docs(erd): adjust sessions table schema for storing JWT whitelist 2025-07-02 23:25:34 +03:00
cc53b862e4 docs(erd): change column names in access schema
`read` -> `view`
`write` -> `edit`
2025-07-02 22:11:25 +03:00
49fc1537b7 docs(erd): remove created_at columns due to switching to UUID v7 2025-07-02 20:17:47 +03:00
1c013183f0 docs(erd): addsurrogate PK to mime table and change some ID types to numeric 2025-07-02 20:14:09 +03:00
e8084bdeb0 docs(erd): CRLF -> LF 2025-07-02 12:36:06 +03:00
6f7f38c9da docs(erd): add entity relationship diagram (ERD) 2025-07-01 23:58:13 +03:00