refactor(db): align project template schema

This commit is contained in:
2026-08-03 10:39:31 +08:00
parent 0be31869b5
commit f010f071eb
9 changed files with 25 additions and 132 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ create table scheme_list (
scheme_id SERIAL PRIMARY KEY,
scheme_name varchar(32) not null,
scheme_type varchar(32) not null,
username varchar(32) not null REFERENCES "users"(username) ON UPDATE CASCADE ON DELETE RESTRICT,
username varchar(32) not null,
create_time TIMESTAMP WITH TIME ZONE not null DEFAULT date_trunc('minute', CURRENT_TIMESTAMP),
scheme_start_time TIMESTAMP WITH TIME ZONE not null,
scheme_detail JSON