create table work_order_notice
(
    id                         serial
        constraint work_order_notice_pk
            primary key,
    plan_time                  timestamp,
    processing_personnel_id    integer,
    processing_personnel_phone varchar(30),
    is_send                    boolean not null,
    procinst_id                varchar(100),
    have_done                  boolean
);

comment on table work_order_notice is '运维工单根据计划修复时间发送企业微信通知';

comment on column work_order_notice.plan_time is '计划修复时间';

comment on column work_order_notice.processing_personnel_id is '处理人的项企账号id';

comment on column work_order_notice.processing_personnel_phone is '处理人手机号码';

comment on column work_order_notice.is_send is '是否已发送';

comment on column work_order_notice.procinst_id is '表单实例id';

comment on column work_order_notice.have_done is '是否解决';



alter table work_order_notice
    add create_time timestamp without time zone;

comment on column public.work_order_notice.create_time is '表单发起时间';