feat(students): add active/paused/left status with hidden filter

This commit is contained in:
dev
2026-10-23 09:14:19 +03:00
parent 1da6b5e107
commit c2cc7db26d
9 changed files with 132 additions and 36 deletions
+3 -1
View File
@@ -51,11 +51,13 @@ CREATE TABLE IF NOT EXISTS students (
deleted_at TIMESTAMPTZ,
purge_at TIMESTAMPTZ,
photo_path VARCHAR(255),
profile JSONB
profile JSONB,
status VARCHAR(20) NOT NULL DEFAULT 'active' CHECK (status IN ('active','paused','left'))
);
ALTER TABLE students ADD COLUMN IF NOT EXISTS photo_path VARCHAR(255);
ALTER TABLE students ADD COLUMN IF NOT EXISTS profile JSONB;
ALTER TABLE students ADD COLUMN IF NOT EXISTS status VARCHAR(20) NOT NULL DEFAULT 'active';
CREATE TABLE IF NOT EXISTS student_photos (
id SERIAL PRIMARY KEY,