Add soft-delete for students: deleted_at/purge_at columns, trash page, API filters and audit logs
This commit is contained in:
@@ -46,6 +46,8 @@ CREATE TABLE IF NOT EXISTS students (
|
||||
name VARCHAR(150) NOT NULL UNIQUE,
|
||||
group_id INT REFERENCES groups(id),
|
||||
created_at TIMESTAMPTZ DEFAULT now(),
|
||||
deleted_at TIMESTAMPTZ,
|
||||
purge_at TIMESTAMPTZ,
|
||||
photo_path VARCHAR(255),
|
||||
profile JSONB
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user