@vnodes/schema
    Preparing search index...

    Interface ModelOptions

    Schema to design data models

    interface ModelOptions {
        description?: string;
        encrypt?: boolean;
        extends?: [ModelName, ...ModelName[]];
        indexes?: PropertyName1[][];
        internal?: boolean;
        name?: ModelName;
        properties?: { [k: string]: PropertyOptions & { [k: string]: unknown } };
        readonly?: boolean;
        relations?: { [k: string]: RelationOptions };
        type?: ModelType;
        uniques?: PropertyName1[][];
    }
    Index

    Properties

    description?: string
    encrypt?: boolean
    extends?: [ModelName, ...ModelName[]]

    1

    indexes?: PropertyName1[][]
    internal?: boolean
    name?: ModelName
    properties?: { [k: string]: PropertyOptions & { [k: string]: unknown } }

    Type Declaration

    • [k: string]: PropertyOptions & { [k: string]: unknown }

      This interface was referenced by undefined's JSON-Schema definition via the patternProperty ".*".

    readonly?: boolean
    relations?: { [k: string]: RelationOptions }
    type?: ModelType
    uniques?: PropertyName1[][]