Primary Key Types
Available primary key types for entities:| Type | Description | Use Case |
|---|---|---|
COLUMN_TYPE_STRING | String identifiers | UUIDs, usernames, session IDs |
COLUMN_TYPE_INTEGER | Integer identifiers | Autoincrementing user IDs, numeric keys |
COLUMN_TYPE_BOOLEAN | Boolean values | Binary entity identifiers (rarely used) |
COLUMN_TYPE_DOUBLE | Floating point numbers | Numeric identifiers with decimals (rarely used) |
Entity Constraints
- Unique names: Entity display names must be unique within a project
- Immutable key type: You cannot change the primary key type after creation
- Referenced entities: You cannot delete entities used in fact tables, dimension tables, or metrics
- Case sensitivity: Entity names are case-sensitive
Entity Resource Name Format
Reference entities using the resource name format:entities/user, entities/session
