Create database schema.
Tables with a name prefixed with _ are local-only, which means they are not synced. Local-only tables are useful for device-specific or temporal data.
const Database = database({ // A local-only table. _todo: TodoTable, todo: TodoTable, todoCategory: TodoCategoryTable, }); type Database = typeof Database.Type; Copy
const Database = database({ // A local-only table. _todo: TodoTable, todo: TodoTable, todoCategory: TodoCategoryTable, }); type Database = typeof Database.Type;
Rest
0.67.0
Create database schema.
Tables with a name prefixed with _ are local-only, which means they are not synced. Local-only tables are useful for device-specific or temporal data.
Example