Interface for a key-value database layout. Example: { 'table1': { indexes: [ { keyPath: 'key1' }, { keyPath: 'key2' }, ], }, }

interface IDatabaseLayout {
    tables: {
        [tableName: string]: IDatabaseTableLayout;
    };
    version: number;
}

Properties

Properties

tables: {
    [tableName: string]: IDatabaseTableLayout;
}

The tables in the database. The primary key of each table is automatically generated by the database.

version: number

The version of the layout.