@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS features (
21
21
CREATE UNIQUE INDEX IF NOT EXISTS features_name_idx ON features (name);
22
22
23
23
-- kvstores houses key-value pairs under various namespaces determined
24
- -- by the rule name, session ID, and feature name.
24
+ -- by the rule name, group ID, and feature name.
25
25
CREATE TABLE IF NOT EXISTS kvstores (
26
26
-- The auto incrementing primary key.
27
27
id INTEGER PRIMARY KEY ,
@@ -35,15 +35,15 @@ CREATE TABLE IF NOT EXISTS kvstores (
35
35
-- kv_store.
36
36
rule_id BIGINT REFERENCES rules(id) NOT NULL ,
37
37
38
- -- The session ID that this kv_store belongs to.
39
- -- If this is set, then this kv_store is a session-specific
38
+ -- The group ID that this kv_store belongs to.
39
+ -- If this is set, then this kv_store is a session-group specific
40
40
-- kv_store for the given rule.
41
- session_id BIGINT REFERENCES sessions(id) ON DELETE CASCADE ,
41
+ group_id BIGINT REFERENCES sessions(id) ON DELETE CASCADE ,
42
42
43
43
-- The feature name that this kv_store belongs to.
44
44
-- If this is set, then this kv_store is a feature-specific
45
- -- kvstore under the given session ID and rule name.
46
- -- If this is set, then session_id must also be set.
45
+ -- kvstore under the given group ID and rule name.
46
+ -- If this is set, then group_id must also be set.
47
47
feature_id BIGINT REFERENCES features(id),
48
48
49
49
-- The key of the entry.
@@ -54,4 +54,4 @@ CREATE TABLE IF NOT EXISTS kvstores (
54
54
);
55
55
56
56
CREATE UNIQUE INDEX IF NOT EXISTS kvstores_lookup_idx
57
- ON kvstores (entry_key, rule_id, perm, session_id , feature_id);
57
+ ON kvstores (entry_key, rule_id, perm, group_id , feature_id);
0 commit comments