functional-models
    Preparing search index...

    Interface OrmModelConfigurations

    ORM based configurations for a model.

    interface OrmModelConfigurations {
        ttlPropertyName?: string;
        uniqueTogether?: readonly string[];
    }
    Index
    ttlPropertyName?: string

    Optional property name that stores the model's expiry as a Unix timestamp in minutes. Datastores can use this to prune expired records.

    uniqueTogether?: readonly string[]

    Validator that there is only a single value in the datastore that has the properties given. Example: ["name", "text"] This will make sure that there can only be a single row in the database that has a unique combination of name and text.