create table if not exists assess
(
    id                            serial not null
        constraint assess_pk
            primary key,
    unit                          varchar(64),
    month                         timestamp with time zone,
    total_points                  double precision,
    industry_points               double precision,
    industry_out_points           double precision,
    plus_or_subtract              double precision,
    "industry_deduction_reason "  varchar(1024),
    industry_out_deduction_reason varchar(1024),
    remark                        varchar(1024)
);

comment on table assess is '考核评分';

comment on column assess.unit is '考核单位';

comment on column assess.month is '考核月份';

comment on column assess.total_points is '总分';

comment on column assess.industry_points is '业内得分';

comment on column assess.industry_out_points is '业外得分';

comment on column assess.plus_or_subtract is '加减得分';

comment on column assess."industry_deduction_reason " is '业内扣分原因
';

comment on column assess.industry_out_deduction_reason is '业外扣分原因';

comment on column assess.remark is '备注';

create unique index if not exists assess_id_uindex
    on assess (id);

