create table iot_param
(
    id               bigint generated by default as identity
        constraint iot_param_name_pk
            primary key,
    data_type        integer,
    uint             varchar,
    type             varchar,
    identifier       varchar,
    name             varchar,
    remark           varchar,
    foreign_id       bigint,
    foreign_type     integer,
    dept_id          bigint,
    create_id        bigint,
    contrast_type    integer,
    "default_value " double precision
);

comment on table iot_param is '参数';

comment on column iot_param.id is '主键';

comment on column iot_param.data_type is '数据类型';

comment on column iot_param.uint is '单位';

comment on column iot_param.type is '输入输出类型';

comment on column iot_param.identifier is '标识';

comment on column iot_param.name is '名称';

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

comment on column iot_param.foreign_id is '联表id';

comment on column iot_param.foreign_type is '关联类型';

comment on column iot_param.dept_id is '部门权限id';

comment on column iot_param.create_id is '创建人id';

comment on column iot_param.contrast_type is '对比类型';

comment on column iot_param."default_value " is '默认数值';

alter table iot_param
    owner to gitea;

