立项配置数据入库、审计日志数据入库、编辑页UI界面美化、设备管理内容补充、审计日志显示优化

This commit is contained in:
Cheng Zhou
2026-02-27 16:16:26 +08:00
parent fd7e3fc948
commit db2d38edbc
48 changed files with 2936 additions and 909 deletions
+24
View File
@@ -87,6 +87,10 @@ CREATE TABLE IF NOT EXISTS public.milestones (
type character varying(50) NOT NULL,
name character varying(200) NOT NULL,
planned_date date,
adjusted_start_date date,
adjusted_end_date date,
actual_start_date date,
actual_end_date date,
actual_date date,
status character varying(20) NOT NULL DEFAULT 'NOT_STARTED',
site_id uuid,
@@ -329,6 +333,25 @@ CREATE TABLE IF NOT EXISTS public.drug_shipments (
CONSTRAINT fk_drug_shipments_created_by FOREIGN KEY (created_by) REFERENCES public.users(id) ON DELETE RESTRICT
);
CREATE TABLE IF NOT EXISTS public.material_equipments (
id uuid PRIMARY KEY,
study_id uuid NOT NULL,
name character varying(255) NOT NULL,
spec_model character varying(255) NOT NULL,
unit character varying(50),
brand character varying(100) NOT NULL,
origin character varying(255),
production_permit_file_name character varying(255),
tech_index_file_name character varying(255),
need_calibration boolean NOT NULL DEFAULT false,
calibration_cycle_days integer,
created_by uuid,
created_at timestamp with time zone NOT NULL DEFAULT now(),
updated_at timestamp with time zone NOT NULL DEFAULT now(),
CONSTRAINT fk_material_equipments_study_id FOREIGN KEY (study_id) REFERENCES public.studies(id) ON DELETE RESTRICT,
CONSTRAINT fk_material_equipments_created_by FOREIGN KEY (created_by) REFERENCES public.users(id) ON DELETE RESTRICT
);
CREATE TABLE IF NOT EXISTS public.startup_feasibility (
id uuid PRIMARY KEY,
study_id uuid NOT NULL,
@@ -515,6 +538,7 @@ CREATE INDEX IF NOT EXISTS ix_finance_items_site_id ON public.finance_items (sit
CREATE INDEX IF NOT EXISTS ix_finance_items_subject_id ON public.finance_items (subject_id);
CREATE INDEX IF NOT EXISTS ix_drug_shipments_study_id ON public.drug_shipments (study_id);
CREATE INDEX IF NOT EXISTS ix_drug_shipments_center_id ON public.drug_shipments (center_id);
CREATE INDEX IF NOT EXISTS ix_material_equipments_study_id ON public.material_equipments (study_id);
CREATE INDEX IF NOT EXISTS ix_startup_feasibility_study_id ON public.startup_feasibility (study_id);
CREATE INDEX IF NOT EXISTS ix_startup_ethics_study_id ON public.startup_ethics (study_id);
CREATE INDEX IF NOT EXISTS ix_kickoff_meetings_study_id ON public.kickoff_meetings (study_id);