summaryrefslogtreecommitdiffstats
path: root/create/postgresql/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'create/postgresql/schema.sql')
-rw-r--r--create/postgresql/schema.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/create/postgresql/schema.sql b/create/postgresql/schema.sql
index 11cc9c71..672b8725 100644
--- a/create/postgresql/schema.sql
+++ b/create/postgresql/schema.sql
@@ -433,4 +433,19 @@ CREATE TABLE service_alarms (
CREATE INDEX services_alarms_serviceid_clock on service_alarms (serviceid,clock);
CREATE INDEX services_alarms_clock on service_alarms (clock);
+--
+-- Table structure for table 'profiles'
+--
+
+CREATE TABLE profiles (
+ profileid serial,
+ userid int4 DEFAULT '0' NOT NULL,
+ idx varchar(64) DEFAULT '' NOT NULL,
+ value varchar(64) DEFAULT '' NOT NULL,
+ PRIMARY KEY (profileid)
+);
+
+CREATE INDEX profiles_userid on profiles (userid);
+CREATE UNIQUE INDEX profiles_userid_idx on profiles (userid,idx);
+
VACUUM ANALYZE;