Show / Hide Table of Contents

Class Schema

The table schema information as a JSON object.

Inheritance
object
Schema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.NosqlService.Models
Assembly: OCI.DotNetSDK.Nosql.dll
Syntax
public class Schema

Properties

Columns

Declaration
[Required(ErrorMessage = "Columns is required.")]
[JsonProperty(PropertyName = "columns")]
public List<Column> Columns { get; set; }
Property Value
Type Description
List<Column>

The columns of a table.

Remarks

Required

Identity

Declaration
[JsonProperty(PropertyName = "identity")]
public Identity Identity { get; set; }
Property Value
Type Description
Identity

PrimaryKey

Declaration
[Required(ErrorMessage = "PrimaryKey is required.")]
[JsonProperty(PropertyName = "primaryKey")]
public List<string> PrimaryKey { get; set; }
Property Value
Type Description
List<string>

A list of column names that make up a key.

Remarks

Required

ShardKey

Declaration
[Required(ErrorMessage = "ShardKey is required.")]
[JsonProperty(PropertyName = "shardKey")]
public List<string> ShardKey { get; set; }
Property Value
Type Description
List<string>

A list of column names that make up a key.

Remarks

Required

Ttl

Declaration
[Required(ErrorMessage = "Ttl is required.")]
[JsonProperty(PropertyName = "ttl")]
public int? Ttl { get; set; }
Property Value
Type Description
int?

The default Time-to-Live for the table, in days.

Remarks

Required

In this article
Back to top