-- PMS 模块测试数据
-- 插入客户联系人测试数据
INSERT INTO pms_customer_contacts (
        contact_id,
        tenant_id,
        contact_type,
        full_name,
        phone_number,
        email,
        gender,
        date_of_birth,
        id_type,
        id_number_encrypted,
        nationality_country_code,
        address_province,
        address_city,
        address_district,
        address_detail,
        postal_code,
        contact_status,
        member_level,
        total_stays,
        total_amount,
        last_stay_date,
        remarks,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        del_flag
    )
VALUES (
        1,
        '000000',
        'guest_individual',
        '张三',
        '13800138000',
        'zhangsan@example.com',
        'male',
        '1990-01-01',
        'ID_CARD',
        'encrypted_id_123',
        'CHN',
        '北京市',
        '北京市',
        '朝阳区',
        '建国路123号',
        '100000',
        'active',
        'gold',
        5,
        2500.00,
        '2023-10-01',
        '重要客户',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        2,
        '000000',
        'guest_individual',
        '李四',
        '13900139000',
        'lisi@example.com',
        'female',
        '1995-05-15',
        'ID_CARD',
        'encrypted_id_456',
        'CHN',
        '上海市',
        '上海市',
        '浦东新区',
        '陆家嘴金融区',
        '200000',
        'active',
        'silver',
        3,
        1500.00,
        '2023-09-15',
        '普通客户',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        3,
        '000000',
        'corporate_contact',
        '王五',
        '13700137000',
        'wangwu@company.com',
        'male',
        '1985-12-20',
        'ID_CARD',
        'encrypted_id_789',
        'CHN',
        '广东省',
        '深圳市',
        '南山区',
        '科技园南区',
        '518000',
        'active',
        'platinum',
        10,
        5000.00,
        '2023-11-01',
        '企业客户',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        4,
        '000000',
        'guest_individual',
        '赵六',
        '13600136000',
        'zhaoliu@example.com',
        'female',
        '1992-08-10',
        'PASSPORT',
        'encrypted_passport_abc',
        'USA',
        '加利福尼亚州',
        '洛杉矶',
        '好莱坞',
        '日落大道456号',
        '90028',
        'active',
        'bronze',
        2,
        800.00,
        '2023-08-20',
        '外国客户',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        5,
        '000000',
        'guest_individual',
        '孙七',
        '13500135000',
        'sunqi@example.com',
        'male',
        '1988-03-25',
        'ID_CARD',
        'encrypted_id_def',
        'CHN',
        '江苏省',
        '南京市',
        '鼓楼区',
        '中山路789号',
        '210000',
        'prospect',
        'bronze',
        1,
        300.00,
        '2023-07-10',
        '潜在客户',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        6,
        '000000',
        'other',
        '钱八',
        '13400134000',
        'qianba@example.com',
        'female',
        '1993-11-30',
        'ID_CARD',
        'encrypted_id_ghi',
        'CHN',
        '浙江省',
        '杭州市',
        '西湖区',
        '文三路888号',
        '310000',
        'active',
        'silver',
        2,
        600.00,
        '2023-06-05',
        '其他类型联系人',
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    );
-- 插入联系人标签测试数据
INSERT INTO pms_contact_tags (
        tag_id,
        tenant_id,
        dept_id,
        name,
        color,
        category,
        description,
        is_system,
        sort_order,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        del_flag
    )
VALUES (
        1,
        '000000',
        103,
        '常客',
        '#FF0000',
        'contact_level',
        '经常入住的客户',
        0,
        1,
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        2,
        '000000',
        103,
        '喜欢安静房间',
        '#00FF00',
        'contact_preference',
        '偏好安静环境的客户',
        0,
        2,
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        3,
        '000000',
        103,
        'VIP客户',
        '#FFD700',
        'contact_level',
        '重要客户',
        0,
        3,
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        4,
        '000000',
        103,
        '商务客户',
        '#0000FF',
        'contact_type',
        '商务出行客户',
        0,
        4,
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    ),
    (
        5,
        '000000',
        103,
        '度假客户',
        '#FF69B4',
        'contact_type',
        '度假休闲客户',
        0,
        5,
        103,
        1,
        NOW(),
        1,
        NOW(),
        '0'
    );
-- 插入联系人标签关联测试数据
INSERT INTO pms_contact_tag_relations (
        contact_id,
        tag_id,
        tenant_id,
        create_dept,
        create_by,
        create_time
    )
VALUES (1, 1, '000000', 103, 1, NOW()),
    (1, 3, '000000', 103, 1, NOW()),
    (2, 2, '000000', 103, 1, NOW()),
    (3, 3, '000000', 103, 1, NOW()),
    (3, 4, '000000', 103, 1, NOW()),
    (4, 5, '000000', 103, 1, NOW()),
    (5, 2, '000000', 103, 1, NOW());