2 DROP TABLE entity_label;
3 DROP TABLE entity_description;
4 DROP TABLE entity_alias;
5 DROP TABLE entity_link;
6 DROP TABLE entity_property;
14 CONSTRAINT pk_entity PRIMARY KEY(entity_id)
17 CREATE TABLE entity_label (
21 CONSTRAINT pk_entity_label PRIMARY KEY(entity_id,language)
24 CREATE TABLE entity_description (
28 CONSTRAINT pk_entity_description PRIMARY KEY(entity_id,language)
31 CREATE TABLE entity_alias (
35 CONSTRAINT pk_entity_alias PRIMARY KEY(entity_id,language,alias)
38 CREATE TABLE entity_link (
42 CONSTRAINT pk_entity_link PRIMARY KEY(entity_id,target)
45 CREATE TABLE entity_link_hit (
50 CONSTRAINT pk_entity_link_hit PRIMARY KEY(entity_id,target)
53 CREATE TABLE link_hit (
57 CONSTRAINT pk_link_hit PRIMARY KEY(target,value)
60 CREATE TABLE entity_property (
67 datetime timestamp with time zone,
68 CONSTRAINT pk_entity_property PRIMARY KEY(entity_id, order_id)
71 CREATE TABLE import_link_hit (