Update schema-entities.sql
This commit is contained in:
parent
dfe2586e61
commit
80af7ebf8d
@ -72,7 +72,7 @@ CREATE TABLE IF NOT EXISTS attribute_kv (
|
|||||||
long_v bigint,
|
long_v bigint,
|
||||||
dbl_v double precision,
|
dbl_v double precision,
|
||||||
last_update_ts bigint,
|
last_update_ts bigint,
|
||||||
CONSTRAINT attribute_kv_unq_key UNIQUE (entity_type, entity_id, attribute_type, attribute_key)
|
CONSTRAINT attribute_kv_pkey PRIMARY KEY (entity_type, entity_id, attribute_type, attribute_key)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS component_descriptor (
|
CREATE TABLE IF NOT EXISTS component_descriptor (
|
||||||
@ -148,7 +148,7 @@ CREATE TABLE IF NOT EXISTS relation (
|
|||||||
relation_type_group varchar(255),
|
relation_type_group varchar(255),
|
||||||
relation_type varchar(255),
|
relation_type varchar(255),
|
||||||
additional_info varchar,
|
additional_info varchar,
|
||||||
CONSTRAINT relation_unq_key UNIQUE (from_id, from_type, relation_type_group, relation_type, to_id, to_type)
|
CONSTRAINT relation_pkey PRIMARY KEY (from_id, from_type, relation_type_group, relation_type, to_id, to_type)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS tb_user (
|
CREATE TABLE IF NOT EXISTS tb_user (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user