Add route to create inbox entries

This commit is contained in:
2025-05-06 23:15:49 +02:00
parent 68bc15cccc
commit b6281be349
10 changed files with 192 additions and 3 deletions

View File

@ -67,7 +67,10 @@ CREATE TABLE inbox
id SERIAL PRIMARY KEY,
file_id INTEGER NOT NULL REFERENCES files ON DELETE RESTRICT,
user_id INTEGER NOT NULL REFERENCES users ON DELETE CASCADE,
account_id INTEGER REFERENCES accounts ON DELETE CASCADE,
movement_id INTEGER NULL REFERENCES movements ON DELETE CASCADE,
time BIGINT NOT NULL,
label VARCHAR(200) NULL,
amount REAL NULL,
time_create BIGINT NOT NULL,
time_update BIGINT NOT NULL
);