AutoMedinfo/database/sample_data.sql

30 lines
1.2 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 示例数据插入脚本
USE medical_info_system;
-- 插入示例用户
INSERT INTO users (username, password, full_name, email, role, enabled, created_at) VALUES
('medical_specialist', '$2a$10$rK8WpQYJzxJ8Y5X5YqFvRO5K7K5K7K5K7K5K7K5K7K5K7K5K7K5K7',
'张医学', 'zhang@ipsen.com', 'MEDICAL_SPECIALIST', TRUE, NOW()),
('reviewer', '$2a$10$rK8WpQYJzxJ8Y5X5YqFvRO5K7K5K7K5K7K5K7K5K7K5K7K5K7K5K7',
'李审核', 'li@ipsen.com', 'REVIEWER', TRUE, NOW());
-- 插入示例查询请求
INSERT INTO inquiry_requests (
request_number, customer_name, customer_email, customer_title,
inquiry_content, status, assigned_to, created_at
) VALUES
('REQ-20241026001', '王医生', 'wang@hospital.com', '主任医师',
'请提供达菲林Decapeptyl在中枢性性早熟治疗中的最新临床试验数据和安全性评估报告。',
'PENDING', 'medical_specialist', NOW()),
('REQ-20241026002', '李医生', 'li@hospital.com', '副主任医师',
'达菲林在子宫内膜异位症患者中的长期治疗效果如何有没有相关的Meta分析',
'PENDING', 'medical_specialist', NOW());
-- 注意密码哈希值仅为示例实际使用时需要使用BCrypt等算法生成正确的哈希值
-- 默认密码都是: admin123