清除“Task”模块

This commit is contained in:
Cheng Zhou
2025-12-19 11:02:21 +08:00
parent 81412fe906
commit b475d4f763
30 changed files with 58 additions and 1090 deletions
-24
View File
@@ -405,10 +405,8 @@ CREATE TABLE public.subjects (
ALTER TABLE public.subjects OWNER TO ctms_user;
--
-- Name: tasks; Type: TABLE; Schema: public; Owner: ctms_user
--
CREATE TABLE public.tasks (
id uuid NOT NULL,
study_id uuid NOT NULL,
milestone_id uuid,
@@ -425,7 +423,6 @@ CREATE TABLE public.tasks (
);
ALTER TABLE public.tasks OWNER TO ctms_user;
--
-- Name: users; Type: TABLE; Schema: public; Owner: ctms_user
@@ -501,7 +498,6 @@ aaaaaaa1-aaaa-aaaa-aaaa-aaaaaaaaaaa1 44444444-4444-4444-4444-444444444444 555555
--
COPY public.attachments (id, study_id, entity_type, entity_id, filename, file_path, file_size, content_type, uploaded_by, uploaded_at, is_deleted) FROM stdin;
aaaabbbb-cccc-dddd-eeee-ffff00001111 44444444-4444-4444-4444-444444444444 task 77777777-7777-7777-7777-777777777777 .pdf /uploads/demo/ethics.pdf 123456 application/pdf 33333333-3333-3333-3333-333333333333 2025-12-18 00:55:17.568504+00 f
\.
@@ -519,7 +515,6 @@ COPY public.audit_logs (id, study_id, entity_type, entity_id, action, detail, op
--
COPY public.comments (id, study_id, entity_type, entity_id, content, created_by, created_at, is_deleted) FROM stdin;
22223333-4444-5555-6666-777788889999 44444444-4444-4444-4444-444444444444 task 77777777-7777-7777-7777-777777777777 33333333-3333-3333-3333-333333333333 2025-12-18 00:55:17.568504+00 f
\.
@@ -652,10 +647,8 @@ COPY public.subjects (id, study_id, site_id, subject_no, status, screening_date,
--
-- Data for Name: tasks; Type: TABLE DATA; Schema: public; Owner: ctms_user
--
COPY public.tasks (id, study_id, milestone_id, title, description, assignee_id, priority, due_date, status, completed_at, created_by, created_at, updated_at) FROM stdin;
77777777-7777-7777-7777-777777777777 44444444-4444-4444-4444-444444444444 66666666-6666-6666-6666-666666666666 33333333-3333-3333-3333-333333333333 HIGH 2025-01-20 DOING \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\.
@@ -834,11 +827,8 @@ ALTER TABLE ONLY public.subjects
--
-- Name: tasks tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: ctms_user
--
ALTER TABLE ONLY public.tasks
ADD CONSTRAINT tasks_pkey PRIMARY KEY (id);
--
@@ -1139,10 +1129,8 @@ CREATE INDEX ix_subjects_study_id ON public.subjects USING btree (study_id);
--
-- Name: ix_tasks_study_id; Type: INDEX; Schema: public; Owner: ctms_user
--
CREATE INDEX ix_tasks_study_id ON public.tasks USING btree (study_id);
--
@@ -1573,35 +1561,23 @@ ALTER TABLE ONLY public.subjects
--
-- Name: tasks tasks_assignee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ctms_user
--
ALTER TABLE ONLY public.tasks
ADD CONSTRAINT tasks_assignee_id_fkey FOREIGN KEY (assignee_id) REFERENCES public.users(id);
--
-- Name: tasks tasks_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ctms_user
--
ALTER TABLE ONLY public.tasks
ADD CONSTRAINT tasks_created_by_fkey FOREIGN KEY (created_by) REFERENCES public.users(id);
--
-- Name: tasks tasks_milestone_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ctms_user
--
ALTER TABLE ONLY public.tasks
ADD CONSTRAINT tasks_milestone_id_fkey FOREIGN KEY (milestone_id) REFERENCES public.milestones(id);
--
-- Name: tasks tasks_study_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: ctms_user
--
ALTER TABLE ONLY public.tasks
ADD CONSTRAINT tasks_study_id_fkey FOREIGN KEY (study_id) REFERENCES public.studies(id);
--