init数据初始化

This commit is contained in:
Cheng Zhou
2025-12-19 09:18:47 +08:00
parent 8fc8bb88d2
commit d8d5d4a92f
126 changed files with 9 additions and 14 deletions
+7 -12
View File
@@ -2,8 +2,6 @@
-- PostgreSQL database dump -- PostgreSQL database dump
-- --
\restrict NRX91yBJCm445olT8iSjLqcIZtZiNWfMWQkgNOCa1Jc3ckwdYcbEMalzD8ITVN9
-- Dumped from database version 15.15 -- Dumped from database version 15.15
-- Dumped by pg_dump version 15.15 -- Dumped by pg_dump version 15.15
@@ -494,7 +492,7 @@ ALTER TABLE public.visits OWNER TO ctms_user;
-- --
COPY public.adverse_events (id, study_id, site_id, subject_id, visit_id, term, onset_date, resolution_date, seriousness, severity, causality, action_taken, outcome, reported_to_sponsor, report_due_date, status, description, created_by, created_at, updated_at) FROM stdin; COPY public.adverse_events (id, study_id, site_id, subject_id, visit_id, term, onset_date, resolution_date, seriousness, severity, causality, action_taken, outcome, reported_to_sponsor, report_due_date, status, description, created_by, created_at, updated_at) FROM stdin;
aaaaaaa1-aaaa-aaaa-aaaa-aaaaaaaaaaa1 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 99999999-9999-9999-9999-999999999999 2025-01-18 2025-01-19 NON_SERIOUS MILD RELATED RECOVERED f 2025-01-25 CLOSED 访 33333333-3333-3333-3333-333333333333 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 aaaaaaa1-aaaa-aaaa-aaaa-aaaaaaaaaaa1 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 99999999-9999-9999-9999-999999999999 2025-01-18 2025-01-19 NON_SERIOUS G1 RELATED RECOVERED f 2025-01-25 CLOSED 访 33333333-3333-3333-3333-333333333333 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -557,7 +555,7 @@ fffffff1-ffff-ffff-ffff-fffffffffff1 44444444-4444-4444-4444-444444444444 eeeeee
-- --
COPY public.finance_items (id, study_id, site_id, subject_id, visit_id, category, title, description, currency, amount, occur_date, status, submitted_at, approved_at, rejected_at, paid_at, approver_id, payer_id, reject_reason, created_by, created_at, updated_at) FROM stdin; COPY public.finance_items (id, study_id, site_id, subject_id, visit_id, category, title, description, currency, amount, occur_date, status, submitted_at, approved_at, rejected_at, paid_at, approver_id, payer_id, reject_reason, created_by, created_at, updated_at) FROM stdin;
11112222-3333-4444-5555-666677778888 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 99999999-9999-9999-9999-999999999999 VISIT_FEE V1 访 V1 访 CNY 200.00 2025-01-18 PAID 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 \N 2025-12-18 00:55:17.568504+00 22222222-2222-2222-2222-222222222222 11111111-1111-1111-1111-111111111111 \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 11112222-3333-4444-5555-666677778888 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 99999999-9999-9999-9999-999999999999 SUBJECT_STIPEND V1 访 V1 访 CNY 200.00 2025-01-18 PAID 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 \N 2025-12-18 00:55:17.568504+00 22222222-2222-2222-2222-222222222222 11111111-1111-1111-1111-111111111111 \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -602,7 +600,7 @@ abcd0000-1111-2222-3333-444455556669 44444444-4444-4444-4444-444444444444 555555
-- --
COPY public.issues (id, study_id, site_id, subject_id, title, description, category, level, owner_id, due_date, status, capa, closed_at, created_by, created_at, updated_at) FROM stdin; COPY public.issues (id, study_id, site_id, subject_id, title, description, category, level, owner_id, due_date, status, capa, closed_at, created_by, created_at, updated_at) FROM stdin;
bbbbbbb1-bbbb-bbbb-bbbb-bbbbbbbbbbb1 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 LAB MEDIUM 22222222-2222-2222-2222-222222222222 2025-01-25 OPEN \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 bbbbbbb1-bbbb-bbbb-bbbb-bbbbbbbbbbb1 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 88888888-8888-8888-8888-888888888888 ISSUE MEDIUM 22222222-2222-2222-2222-222222222222 2025-01-25 OPEN \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -611,7 +609,7 @@ bbbbbbb1-bbbb-bbbb-bbbb-bbbbbbbbbbb1 44444444-4444-4444-4444-444444444444 555555
-- --
COPY public.milestones (id, study_id, type, name, planned_date, actual_date, status, owner_id, notes, created_at, updated_at) FROM stdin; COPY public.milestones (id, study_id, type, name, planned_date, actual_date, status, owner_id, notes, created_at, updated_at) FROM stdin;
66666666-6666-6666-6666-666666666666 44444444-4444-4444-4444-444444444444 STARTUP 2025-01-10 2025-01-12 DONE 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 66666666-6666-6666-6666-666666666666 44444444-4444-4444-4444-444444444444 SIV 2025-01-10 2025-01-12 DONE 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -649,7 +647,7 @@ cccc1111-2222-3333-4444-555566667777 44444444-4444-4444-4444-444444444444 333333
-- --
COPY public.subjects (id, study_id, site_id, subject_no, status, screening_date, enrollment_date, completion_date, drop_reason, created_at, updated_at) FROM stdin; COPY public.subjects (id, study_id, site_id, subject_no, status, screening_date, enrollment_date, completion_date, drop_reason, created_at, updated_at) FROM stdin;
88888888-8888-8888-8888-888888888888 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 SUBJ-001 ONGOING 2025-01-15 2025-01-18 \N \N 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 88888888-8888-8888-8888-888888888888 44444444-4444-4444-4444-444444444444 55555555-5555-5555-5555-555555555555 SUBJ-001 ENROLLED 2025-01-15 2025-01-18 \N \N 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -658,7 +656,7 @@ COPY public.subjects (id, study_id, site_id, subject_no, status, screening_date,
-- --
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; 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 IN_PROGRESS \N 22222222-2222-2222-2222-222222222222 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 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
\. \.
@@ -687,7 +685,7 @@ ddddddd1-dddd-dddd-dddd-ddddddddddd1 44444444-4444-4444-4444-444444444444 555555
-- --
COPY public.visits (id, study_id, subject_id, visit_code, visit_name, planned_date, actual_date, status, window_start, window_end, notes, created_at, updated_at) FROM stdin; COPY public.visits (id, study_id, subject_id, visit_code, visit_name, planned_date, actual_date, status, window_start, window_end, notes, created_at, updated_at) FROM stdin;
99999999-9999-9999-9999-999999999999 44444444-4444-4444-4444-444444444444 88888888-8888-8888-8888-888888888888 V1 线访 2025-01-18 2025-01-18 COMPLETED 2025-01-16 2025-01-20 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00 99999999-9999-9999-9999-999999999999 44444444-4444-4444-4444-444444444444 88888888-8888-8888-8888-888888888888 V1 线访 2025-01-18 2025-01-18 DONE 2025-01-16 2025-01-20 2025-12-18 00:55:17.568504+00 2025-12-18 00:55:17.568504+00
\. \.
@@ -1657,6 +1655,3 @@ ALTER TABLE ONLY public.visits
-- --
-- PostgreSQL database dump complete -- PostgreSQL database dump complete
-- --
\unrestrict NRX91yBJCm445olT8iSjLqcIZtZiNWfMWQkgNOCa1Jc3ckwdYcbEMalzD8ITVN9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More