中文:收口权限与中心/立项配置改造
This commit is contained in:
+3
-3
@@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS public.users (
|
||||
password_hash character varying(255) NOT NULL,
|
||||
full_name character varying(255) NOT NULL,
|
||||
role public.user_role NOT NULL,
|
||||
department character varying(255) NOT NULL,
|
||||
clinical_department character varying(255) NOT NULL,
|
||||
status public.user_status NOT NULL DEFAULT 'PENDING',
|
||||
created_at timestamp with time zone NOT NULL DEFAULT now(),
|
||||
updated_at timestamp with time zone NOT NULL DEFAULT now(),
|
||||
@@ -535,7 +535,7 @@ CREATE INDEX IF NOT EXISTS ix_faq_replies_study_id ON public.faq_replies (study_
|
||||
-- DEMO SEED DATA (idempotent)
|
||||
-- =========================================
|
||||
INSERT INTO public.users (
|
||||
id, email, password_hash, full_name, role, department, status, created_at, updated_at
|
||||
id, email, password_hash, full_name, role, clinical_department, status, created_at, updated_at
|
||||
) VALUES
|
||||
('11111111-1111-1111-1111-111111111111', 'admin@example.com', '$2y$12$FMfyBt7YfZWeh/x8WMEIA.S6VUTIMryk2NxWHyOOuJvd6YrDwHAdu', 'System Admin', 'ADMIN', 'SYSTEM', 'ACTIVE', '2025-01-05 08:00:00+00', '2025-01-05 08:00:00+00'),
|
||||
('22222222-2222-2222-2222-222222222222', 'pm@example.com', '$2y$12$P9UDKu48ru84uVrlquqhXufmw/CfMEzQosC0X8eT2EmY/PgM/03j2', '项目经理', 'PM', 'PMO', 'ACTIVE', '2025-01-05 08:10:00+00', '2025-01-05 08:10:00+00'),
|
||||
@@ -547,7 +547,7 @@ ON CONFLICT (email) DO UPDATE SET
|
||||
password_hash = EXCLUDED.password_hash,
|
||||
full_name = EXCLUDED.full_name,
|
||||
role = EXCLUDED.role,
|
||||
department = EXCLUDED.department,
|
||||
clinical_department = EXCLUDED.clinical_department,
|
||||
status = EXCLUDED.status,
|
||||
updated_at = EXCLUDED.updated_at;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user