create table contract_relation
(
    ID          varchar(36) not null
        primary key,
    CONTRACT_ID varchar(36) null comment '合同id',
    CUSTOMER_ID varchar(36) null comment '客户id',
    TENANCY_ID  varchar(36) null,
    CREATED_BY  varchar(36) null,
    CREATED_ON  datetime    null,
    DEL_FLAG    decimal(1)  null comment '0=未删除1=已删除'
)
    comment '客户协议关系表';

INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('2ba8f926f34443a8a189916ec6936aad', 'ccb1deff1086449d87106a6478f34ca4', '004EMKYJU1PJ8', null, 'admin', '2021-08-14 15:45:58', 1);
INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('6a4b68c9751a4602b1a68d1b5c292999', 'ccb1deff1086449d87106a6478f34ca4', '004EML2AVA0Z0', null, 'admin', '2022-02-23 15:23:17', 0);
INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('7c9836d855a74d7989c3b6a5666c1709', 'ccb1deff1086449d87106a6478f34ca4', '004EML2AVA0Z0', null, 'admin', '2021-08-14 15:45:58', 1);
INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('bd30a30f81414e3dbc225ac735834a36', 'ccb1deff1086449d87106a6478f34ca4', 'YP10127', null, 'admin', '2021-08-14 15:02:19', 0);
INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('cb9122071d6c4c208d2bb66fb88afc23', 'ccb1deff1086449d87106a6478f34ca4', '004EMKYJU1PJ8', null, 'admin', '2022-02-23 15:23:17', 0);
INSERT INTO ag_devmysql.contract_relation (ID, CONTRACT_ID, CUSTOMER_ID, TENANCY_ID, CREATED_BY, CREATED_ON, DEL_FLAG) VALUES ('ff879e41f133400f855740a04cc910c8', 'ccb1deff1086449d87106a6478f34ca4', '004DZM99DPCA6', null, 'admin', '2021-08-14 15:02:19', 0);
