All Products
Search
Document Center

Tablestore:PrimaryKeySchema

Last Updated:Sep 22, 2026

Defines the configuration of a primary key column.

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 configuration of the primary key column.