github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/datastore/spanner/schema.go (about)

     1  package spanner
     2  
     3  const (
     4  	tableNamespace     = "namespace_config"
     5  	colNamespaceName   = "namespace"
     6  	colNamespaceConfig = "serialized_config"
     7  	colNamespaceTS     = "timestamp"
     8  
     9  	tableRelationship   = "relation_tuple"
    10  	colNamespace        = "namespace"
    11  	colObjectID         = "object_id"
    12  	colRelation         = "relation"
    13  	colUsersetNamespace = "userset_namespace"
    14  	colUsersetObjectID  = "userset_object_id"
    15  	colUsersetRelation  = "userset_relation"
    16  	colTimestamp        = "timestamp"
    17  	colCaveatName       = "caveat_name"
    18  	colCaveatContext    = "caveat_context"
    19  
    20  	tableCaveat         = "caveat"
    21  	colName             = "name"
    22  	colCaveatDefinition = "definition"
    23  	colCaveatTS         = "timestamp"
    24  
    25  	tableMetadata = "metadata"
    26  	colUniqueID   = "unique_id"
    27  )
    28  
    29  var allRelationshipCols = []string{
    30  	colNamespace,
    31  	colObjectID,
    32  	colRelation,
    33  	colUsersetNamespace,
    34  	colUsersetObjectID,
    35  	colUsersetRelation,
    36  	colTimestamp,
    37  	colCaveatName,
    38  	colCaveatContext,
    39  }