All Products
Search
Document Center

Tablestore:PrimaryKeySchema

Last Updated:Aug 06, 2024

Specifies the schema of the primary key of a table.

Data structure

message PrimaryKeySchema {
    required string name = 1;
    required PrimaryKeyType type = 2;
    optional PrimaryKeyOption option = 3; 
}

Parameter

Type

Required

Description

name

string

Yes

The name of the primary key column.

type

PrimaryKeyType

Yes

The type of the primary key column.

option

PrimaryKeyOption

No

The optional configurations of the primary key column.