TableDescriptor describes an ORM table.

from message cosmos.orm.v1.TableDescriptor

Hierarchy

Constructors

Properties

id: number = 0

id is a non-zero integer ID that must be unique within the tables and singletons in this file. It may be deprecated in the future when this can be auto-generated.

from field: uint32 id = 3;

index defines one or more secondary indexes.

from field: repeated cosmos.orm.v1.SecondaryIndexDescriptor index = 2;

primary_key defines the primary key for the table.

from field: cosmos.orm.v1.PrimaryKeyDescriptor primary_key = 1;

fields: FieldList = ...
runtime: ProtoRuntime = proto3
typeName: "cosmos.orm.v1.TableDescriptor" = "cosmos.orm.v1.TableDescriptor"

Methods