TinyBase logoTinyBase


The Tables type is the data structure representing all of the data in a Store.

{[tableId: Id]: Table}

A Tables object is used when setting all of the tables together with the setTables method, and when getting them back out again with the getTables method. A Tables object is a regular JavaScript object containing individual Table objects, keyed by their Id.


import type {Tables} from 'tinybase';

export const tables: Tables = {
  pets: {
    fido: {species: 'dog', color: 'brown'},
    felix: {species: 'cat'},
  species: {
    dog: {price: 5},
    cat: {price: 4},