-
Notifications
You must be signed in to change notification settings - Fork 257
/
schema.go
43 lines (37 loc) · 1.02 KB
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package spanner
const (
tableNamespace = "namespace_config"
colNamespaceName = "namespace"
colNamespaceConfig = "serialized_config"
colNamespaceTS = "timestamp"
tableRelationship = "relation_tuple"
colNamespace = "namespace"
colObjectID = "object_id"
colRelation = "relation"
colUsersetNamespace = "userset_namespace"
colUsersetObjectID = "userset_object_id"
colUsersetRelation = "userset_relation"
colTimestamp = "timestamp"
colCaveatName = "caveat_name"
colCaveatContext = "caveat_context"
tableCaveat = "caveat"
colName = "name"
colCaveatDefinition = "definition"
colCaveatTS = "timestamp"
tableMetadata = "metadata"
colUniqueID = "unique_id"
tableCounters = "relationship_estimate_counters"
colID = "id"
colCount = "count"
)
var allRelationshipCols = []string{
colNamespace,
colObjectID,
colRelation,
colUsersetNamespace,
colUsersetObjectID,
colUsersetRelation,
colTimestamp,
colCaveatName,
colCaveatContext,
}