feat(students): multi-photo gallery, group photos in export, KIBERone rebrand
This commit is contained in:
@@ -48,6 +48,15 @@ CREATE TABLE IF NOT EXISTS students (
|
||||
ALTER TABLE students ADD COLUMN IF NOT EXISTS photo_path VARCHAR(255);
|
||||
ALTER TABLE students ADD COLUMN IF NOT EXISTS profile JSONB;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS student_photos (
|
||||
id SERIAL PRIMARY KEY,
|
||||
student_id INT NOT NULL REFERENCES students(id) ON DELETE CASCADE,
|
||||
photo_path VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_student_photos_student_id ON student_photos(student_id);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS entries (
|
||||
id SERIAL PRIMARY KEY,
|
||||
student_name VARCHAR(150) NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user