-- 就业登记主题库
CREATE TABLE shz_data_dashboard.theme_employment_register
(
    "AAC043" character varying(2) COLLATE pg_catalog."default",
    "AAC044" character varying(20) COLLATE pg_catalog."default",
    "AAC003" character varying(200) COLLATE pg_catalog."default",
    "ADC111" character varying(10) COLLATE pg_catalog."default",
    "ADC110" timestamp without time zone,
    "AAE043" timestamp without time zone,
    "AAB301" character varying(50) COLLATE pg_catalog."default",
    "AAF001" character varying(255) COLLATE pg_catalog."default",
    "AAF011" character varying(128) COLLATE pg_catalog."default",
    "ABE587" character varying(2) COLLATE pg_catalog."default",
    "ABE585" timestamp without time zone,
    "ADC112" character varying(255) COLLATE pg_catalog."default",
    "ADC113" character varying(2) COLLATE pg_catalog."default",
    "AAB998" character varying(50) COLLATE pg_catalog."default",
    "AAB003" character varying(50) COLLATE pg_catalog."default",
    "AAB004" character varying(50) COLLATE pg_catalog."default",
    "AAC004" character varying(10) COLLATE pg_catalog."default",
    "AAC005" character varying(10) COLLATE pg_catalog."default",
    "AAC006" timestamp without time zone,
    "AAC011" character varying(10) COLLATE pg_catalog."default",
    "AAB019" character varying(10) COLLATE pg_catalog."default",
    "AAB022" character varying(10) COLLATE pg_catalog."default",
    "AAB020" character varying(10) COLLATE pg_catalog."default",
    "AAE006" character varying(255) COLLATE pg_catalog."default",
    "ACC321" integer,
    "ACC328" numeric(10, 2),
    "ACC22B" character varying(2) COLLATE pg_catalog."default",
    "AAC008" character varying(2) COLLATE pg_catalog."default",
    "ACA112" character varying(50) COLLATE pg_catalog."default",
    "ACC102" integer,
    "ACC22C" character varying(2) COLLATE pg_catalog."default",
    "ACC22D" character varying(2) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.theme_employment_register
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC043" IS '证件类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC044" IS '证件号码';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC003" IS '姓名';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ADC111" IS '就业形式';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ADC110" IS '就业日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAE043" IS '就业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB301" IS '经办机构所属地区行政区划代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAF001" IS '经办机构编号';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAF011" IS '经办机构名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ABE587" IS '注销就业登记标识';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ABE585" IS '注销就业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ADC112" IS '注销就业登记原因';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ADC113" IS '创业标识';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB998" IS '用人单位统一社会信用代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB003" IS '用人单位组织机构代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB004" IS '用人单位名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC004" IS '性别';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC005" IS '民族';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC006" IS '出生日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC011" IS '学历';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB019" IS '单位类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB022" IS '所属行业';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAB020" IS '经济类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAE006" IS '单位地址';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC321" IS '创业带动就业人数';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC328" IS '个人月收入';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC22B" IS '是否已签订劳动合同';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."AAC008" IS '是否参保';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACA112" IS '工种名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC102" IS '每周工作时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC22C" IS '是否工作满意';

COMMENT
ON COLUMN shz_data_dashboard.theme_employment_register."ACC22D" IS '是否薪资稳定';

COMMENT
ON   TABLE shz_data_dashboard.theme_employment_register IS '就业登记主题库';


-- 高校毕业生主题库
CREATE TABLE shz_data_dashboard.theme_graduate_info
(
    "AAC043" character varying(2) COLLATE pg_catalog."default",
    "AAC044" character varying(20) COLLATE pg_catalog."default",
    "AAC005" character varying(10) COLLATE pg_catalog."default",
    "AAC011" character varying(10) COLLATE pg_catalog."default",
    "AAC004" character varying(10) COLLATE pg_catalog."default",
    "AAC045" character varying(200) COLLATE pg_catalog."default",
    "AAE700" character varying(50) COLLATE pg_catalog."default",
    "ACC01G" character varying(200) COLLATE pg_catalog."default",
    "AAC183" character varying(50) COLLATE pg_catalog."default",
    "AAC181" timestamp without time zone,
    "AAC010" character varying(255) COLLATE pg_catalog."default",
    "AAE006" character varying(255) COLLATE pg_catalog."default",
    "AAB299" character varying(50) COLLATE pg_catalog."default",
    "AAC304" character varying(2) COLLATE pg_catalog."default",
    "ADC956" character varying(2) COLLATE pg_catalog."default",
    "ADC969" character varying(2) COLLATE pg_catalog."default",
    "ADA301" character varying(10) COLLATE pg_catalog."default",
    "ACC028" character varying(10) COLLATE pg_catalog."default",
    "AAE036" timestamp without time zone,
    "ACA112" character varying(200) COLLATE pg_catalog."default",
    "ACC240" timestamp without time zone,
    "ADC111" character varying(10) COLLATE pg_catalog."default",
    "ADC110" timestamp without time zone,
    "AAE043" timestamp without time zone,
    "ABE587" character varying(2) COLLATE pg_catalog."default",
    "ABE585" timestamp without time zone,
    "ADC112" character varying(255) COLLATE pg_catalog."default",
    "ADC113" character varying(2) COLLATE pg_catalog."default",
    "AAB998" character varying(50) COLLATE pg_catalog."default",
    "AAB003" character varying(50) COLLATE pg_catalog."default",
    "AAB004" character varying(50) COLLATE pg_catalog."default",
    "AAB019" character varying(10) COLLATE pg_catalog."default",
    "AAB022" character varying(10) COLLATE pg_catalog."default",
    "AAB020" character varying(10) COLLATE pg_catalog."default",
    "ACC321" integer,
    "ACC328" numeric(10, 2),
    "ACC22B" character varying(2) COLLATE pg_catalog."default",
    "AAC008" character varying(2) COLLATE pg_catalog."default",
    "ACC102" integer,
    "ACC22C" character varying(2) COLLATE pg_catalog."default",
    "ACC22D" character varying(2) COLLATE pg_catalog."default",
    "ADC114" character varying(2) COLLATE pg_catalog."default",
    "AAC046" character varying(2) COLLATE pg_catalog."default",
    "ADC009" character varying(2) COLLATE pg_catalog."default",
    "ADC115" character varying(2) COLLATE pg_catalog."default",
    "ACC22E" character varying(2) COLLATE pg_catalog."default",
    "ACC22F" character varying(2) COLLATE pg_catalog."default",
    "ACC22G" character varying(2) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.theme_graduate_info
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC043" IS '证件类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC044" IS '证件号码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC005" IS '民族';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC011" IS '学历';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC004" IS '性别';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC045" IS '院校名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAE700" IS '院校代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC01G" IS '专业名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC183" IS '专业代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC181" IS '毕业日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC010" IS '户籍地址';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAE006" IS '实际居住地址';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB299" IS '实际居住地址代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC304" IS '是否省内户口';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC956" IS '是否内地高校新疆籍毕业生';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC969" IS '离校未就业标记';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADA301" IS '高校毕业生实名登记数据来源';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC028" IS '就业去向';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAE036" IS '登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACA112" IS '工种名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC240" IS '求职成功日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC111" IS '就业形式';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC110" IS '就业日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAE043" IS '就业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ABE587" IS '注销就业登记标识';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ABE585" IS '注销就业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC112" IS '注销就业登记原因';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC113" IS '创业标识';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB998" IS '用人单位统一社会信用代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB003" IS '用人单位组织机构代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB004" IS '用人单位名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB019" IS '单位类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB022" IS '所属行业';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAB020" IS '经济类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC321" IS '创业带动就业人数';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC328" IS '个人月收入';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22B" IS '是否已签订劳动合同';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC008" IS '是否参保';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC102" IS '每周工作时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22C" IS '是否工作满意';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22D" IS '是否薪资稳定';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC114" IS '创业是否成功';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."AAC046" IS '高校类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC009" IS '是否就业';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ADC115" IS '就业流向';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22E" IS '是否工作环境满意';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22F" IS '是否薪资待遇满意';

COMMENT
ON COLUMN shz_data_dashboard.theme_graduate_info."ACC22G" IS '是否发展前景满意';

COMMENT
ON   TABLE shz_data_dashboard.theme_graduate_info IS '高校毕业生主题库';


-- 失业登记主题库
CREATE TABLE shz_data_dashboard.theme_unemployment_register
(
    "AAC043" character varying(2) COLLATE pg_catalog."default",
    "AAC044" character varying(20) COLLATE pg_catalog."default",
    "AAC003" character varying(200) COLLATE pg_catalog."default",
    "ADC210" timestamp without time zone,
    "ACC412" character varying(2) COLLATE pg_catalog."default",
    "AJC093" character varying(200) COLLATE pg_catalog."default",
    "AAB301" character varying(50) COLLATE pg_catalog."default",
    "AAF001" character varying(255) COLLATE pg_catalog."default",
    "AAF011" character varying(128) COLLATE pg_catalog."default",
    "AJC174" character varying(2) COLLATE pg_catalog."default",
    "ABE587" character varying(2) COLLATE pg_catalog."default",
    "ABE586" timestamp without time zone,
    "AJC119" character varying(255) COLLATE pg_catalog."default",
    "AAB004" character varying(50) COLLATE pg_catalog."default",
    "AAB003" character varying(50) COLLATE pg_catalog."default",
    "AAB998" character varying(50) COLLATE pg_catalog."default",
    "ADC310" character varying(10) COLLATE pg_catalog."default",
    "AAC008" character varying(2) COLLATE pg_catalog."default",
    "ACC361" timestamp without time zone,
    "ABE588" timestamp without time zone,
    "AAB019" character varying(10) COLLATE pg_catalog."default",
    "AAB022" character varying(10) COLLATE pg_catalog."default",
    "AAB020" character varying(10) COLLATE pg_catalog."default",
    "ACA112" character varying(10) COLLATE pg_catalog."default",
    "AAC004" character varying(10) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.theme_unemployment_register
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAC043" IS '证件类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAC044" IS '证件号码';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAC003" IS '姓名';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ADC210" IS '失业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ACC412" IS '失业登记地类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AJC093" IS '失业原因';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB301" IS '经办机构所属地区行政区划代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAF001" IS '经办机构编号';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAF011" IS '经办机构名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AJC174" IS '是否申领失业保险金';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ABE587" IS '注销失业登记标识';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ABE586" IS '注销失业登记日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AJC119" IS '注销失业登记原因';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB004" IS '失业前所在用人单位名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB003" IS '失业前所在用人单位统一社会信用代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB998" IS '失业前所在用人单位组织机构代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ADC310" IS '就业困难人员类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAC008" IS '是否零就业家庭';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ACC361" IS '就业困难人员认定日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ABE588" IS '就业困难人员退出日期';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB019" IS '单位类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB022" IS '所属行业';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAB020" IS '经济类型';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."ACA112" IS '工种名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_unemployment_register."AAC004" IS '性别';

COMMENT
ON   TABLE shz_data_dashboard.theme_unemployment_register IS '失业登记主题库';

-- 招聘岗位主题库
CREATE TABLE shz_data_dashboard.theme_recruitment_job
(
    job_id                 bigint,
    job_title              character varying(200) COLLATE pg_catalog."default",
    min_salary             integer,
    max_salary             integer,
    education              character varying(100) COLLATE pg_catalog."default",
    experience             character varying(100) COLLATE pg_catalog."default",
    job_location           character varying(100) COLLATE pg_catalog."default",
    posting_date           timestamp without time zone,
    vacancies              integer,
    create_time            timestamp without time zone,
    update_time            timestamp without time zone,
    is_hot                 character varying(2) COLLATE pg_catalog."default",
    apply_num              character varying(20) COLLATE pg_catalog."default",
    job_location_area_code character varying(50) COLLATE pg_catalog."default",
    job_category           character varying(255) COLLATE pg_catalog."default",
    job_type               character varying(255) COLLATE pg_catalog."default",
    type                   character varying(255) COLLATE pg_catalog."default",
    job_address            text COLLATE pg_catalog."default",
    company_id             bigint,
    name                   character varying(255) COLLATE pg_catalog."default",
    location               character varying(255) COLLATE pg_catalog."default",
    industry               character varying(100) COLLATE pg_catalog."default",
    scale                  character varying(50) COLLATE pg_catalog."default",
    del_flag               character varying(1) COLLATE pg_catalog."default",
    code                   character varying(100) COLLATE pg_catalog."default",
    description            text COLLATE pg_catalog."default",
    nature                 character varying(100) COLLATE pg_catalog."default",
    total_recruitment      integer,
    is_imp_company         character varying(10) COLLATE pg_catalog."default",
    imp_company_type       character varying(20) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.theme_recruitment_job
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_id IS '工作id';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_title IS '职位名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.min_salary IS '最小薪资';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.max_salary IS '最大薪资';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.education IS '学历要求';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.experience IS '工作经验要求';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_location IS '岗位区划';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.posting_date IS '发布时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.vacancies IS '招聘人数';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.create_time IS '创建时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.update_time IS '更新时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.is_hot IS '是否火';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.apply_num IS '申请次数';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_location_area_code IS '工作地点';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_category IS '岗位分类名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_type IS '岗位类型  0疆内 1疆外';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.type IS '类型   0常规岗位 1就业见习岗位 2实习实训岗位 3社区实践岗位 4零工 对应字段字典position_type';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.job_address IS '工作地点';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.company_id IS '公司id';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.name IS '单位名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.location IS '单位地点';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.industry IS '主要行业';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.scale IS '单位规模';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.del_flag IS '删除标志';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.code IS '信用代码';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.description IS '单位介绍';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.nature IS '企业性质';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.total_recruitment IS '招聘数量';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.is_imp_company IS '是否本地重点企业';

COMMENT
ON COLUMN shz_data_dashboard.theme_recruitment_job.imp_company_type IS '本地重点发展产业';

COMMENT
ON   TABLE shz_data_dashboard.theme_recruitment_job IS '招聘岗位主题库';

-- 求职者主题库
CREATE TABLE shz_data_dashboard.theme_job_seeker
(
    user_id               bigint,
    name                  character varying(200) COLLATE pg_catalog."default",
    age                   character varying(10) COLLATE pg_catalog."default",
    sex                   character varying(1) COLLATE pg_catalog."default",
    birth_date            timestamp without time zone,
    education             character varying(2) COLLATE pg_catalog."default",
    political_affiliation character varying(100) COLLATE pg_catalog."default",
    phone                 character varying(200) COLLATE pg_catalog."default",
    min_salary            character varying(10) COLLATE pg_catalog."default",
    max_salary            character varying(10) COLLATE pg_catalog."default",
    area                  character varying(20) COLLATE pg_catalog."default",
    status                character varying(2) COLLATE pg_catalog."default",
    del_flag              character varying(1) COLLATE pg_catalog."default",
    login_date            timestamp without time zone,
    create_time           timestamp without time zone,
    update_time           timestamp without time zone,
    job_title_id          text COLLATE pg_catalog."default",
    experience            character varying(500) COLLATE pg_catalog."default",
    id_card               character varying(200) COLLATE pg_catalog."default",
    nation                character varying(64) COLLATE pg_catalog."default",
    work_experience       character varying(10) COLLATE pg_catalog."default",
    domicile_address      character varying(200) COLLATE pg_catalog."default",
    address               character varying(200) COLLATE pg_catalog."default",
    user_type             character varying(40) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.theme_job_seeker
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.user_id IS '用户id';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.name IS '用户名称';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.age IS '年龄段';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.sex IS '用户性别';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.birth_date IS '生日';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.education IS '学历';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.political_affiliation IS '政治面貌';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.phone IS '手机号码';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.min_salary IS '最低工资';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.max_salary IS '最高工资';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.area IS '期望工作地';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.status IS '帐号状态';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.del_flag IS '删除标志';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.login_date IS '最后登录时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.create_time IS '创建时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.update_time IS '更新时间';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.job_title_id IS '期望岗位';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.experience IS '期望薪资';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.id_card IS '身份证';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.nation IS '民族';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.work_experience IS '工作经验';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.domicile_address IS '户籍地址';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.address IS '地址';

COMMENT
ON COLUMN shz_data_dashboard.theme_job_seeker.user_type IS '用户类型';

COMMENT
ON   TABLE shz_data_dashboard.theme_job_seeker IS '求职者主题库';

-- 就业失业预警指标
CREATE TABLE shz_data_dashboard.model_warning_indicator
(
    id             serial PRIMARY KEY,
    indicator_name character varying(400) NOT NULL COLLATE pg_catalog."default",
    indicator_code character varying(200) NOT NULL COLLATE pg_catalog."default",
    indicator_type smallint               NOT NULL,
    sort_order     integer                NOT NULL
)
;

ALTER TABLE shz_data_dashboard.model_warning_indicator
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator.id IS '主键';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator.indicator_name IS '指标名称';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator.indicator_code IS '指标编码';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator.indicator_type IS '指标类型（1-就业指标 2-失业指标 3-经济指标）';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator.sort_order IS '排序';

COMMENT
ON   TABLE shz_data_dashboard.model_warning_indicator IS '就业失业预警指标';


-- 就业失业预警指标数据
CREATE TABLE shz_data_dashboard.model_warning_indicator_data
(
    id             serial PRIMARY KEY,
    indicator_code character varying(200) NOT NULL COLLATE pg_catalog."default",
    data_value     double precision       NOT NULL,
    year           integer                NOT NULL,
    month          integer                NOT NULL,
    region_code    character varying(200) NOT NULL COLLATE pg_catalog."default",
    region_name    character varying(400) NOT NULL COLLATE pg_catalog."default",
    remark         character varying(500) COLLATE pg_catalog."default"
)
;

ALTER TABLE shz_data_dashboard.model_warning_indicator_data
    OWNER TO sysdba;

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.id IS '主键';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.indicator_code IS '指标编码';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.data_value IS '指标值';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.year IS '年份';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.month IS '月份';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.region_code IS '区域编码';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.region_name IS '区域名称';

COMMENT
ON COLUMN shz_data_dashboard.model_warning_indicator_data.remark IS '备注';

COMMENT
ON   TABLE shz_data_dashboard.model_warning_indicator_data IS '就业失业预警指标数据';