update notice set type = 'web' where role_id is not null;

update notice set type = 'police_wechat' where role_id is null;


ALTER TABLE "mailbox"."mail_mark"
    ADD COLUMN "sign_timeout_duration" int8,
  ADD COLUMN "second_sign_timeout_duration" int8,
  ADD COLUMN "three_timeout_duration" int8,
  ADD COLUMN "contact_writer_timeout_duration" int8,
  ADD COLUMN "process_timeout_duration" int8,
  ADD COLUMN "is_completed_in_4days" bool;

COMMENT ON COLUMN "mailbox"."mail_mark"."sign_timeout_duration" IS '签收超时 时长';

COMMENT ON COLUMN "mailbox"."mail_mark"."second_sign_timeout_duration" IS '二级单位签收超时时长';

COMMENT ON COLUMN "mailbox"."mail_mark"."three_timeout_duration" IS '三级单位签收超时时长';

COMMENT ON COLUMN "mailbox"."mail_mark"."contact_writer_timeout_duration" IS '联系群众超时 时长';

COMMENT ON COLUMN "mailbox"."mail_mark"."process_timeout_duration" IS '办结超时 时长';

COMMENT ON COLUMN "mailbox"."mail_mark"."is_completed_in_4days" IS '是否4天内办结';


ALTER TABLE "mailbox"."mail"
    ADD COLUMN "second_distribute_time" timestamp;
