add project file upload to student form, project_files table with backup/restore, download in journal, and crash-proof entries endpoint

This commit is contained in:
dev
2026-09-06 11:29:34 +03:00
parent c2c5f2ed42
commit c5fdf006f5
5 changed files with 175 additions and 14 deletions
+8
View File
@@ -44,3 +44,11 @@ INSERT INTO groups (name) VALUES
('Intermediate'),
('Advanced')
ON CONFLICT (name) DO NOTHING;
CREATE TABLE IF NOT EXISTS project_files (
id SERIAL PRIMARY KEY,
entry_id INT NOT NULL REFERENCES entries(id) ON DELETE CASCADE,
path VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
created_at TIMESTAMPTZ DEFAULT now()
);