module Mara::Model

A Mara Model.

@see Mara::Model::Base

@author Maddie Schipper @since 1.0.0

Constants

GlobalSecondaryIndex

Represents a DynamoDB Global Secondary Index.

@see Mara::Model::Dsl::ClassMethods#add_gsi

@!attribute [rw] name

The name of the index.

@return [String]

@!attribute [rw] partition_key

The name of the GSI partion key.

@return [String]

@!attribute [rw] sort_key

The name of the GSI sort_key.

@return [String, nil]
LocalSecondaryIndex

Represents a DynamoDB Local Secondary Index.

@see Mara::Model::Dsl::ClassMethods#add_lsi

@!attribute [rw] name

The name of the index.

@return [String]

@!attribute [rw] key_name

The name of the LSI sort_key.

@return [String]