UNPKG

@triplit/client

Version:
21 lines 508 B
import { Schema as S, } from '@triplit/db'; const schema = S.Collections({ todos: { schema: S.Schema({ id: S.Id(), title: S.String(), done: S.Boolean(), assigneeId: S.String(), }), relationships: { assignee: S.RelationById('users', '$1.assigneeId'), }, }, users: { schema: S.Schema({ id: S.Id(), name: S.String(), }), }, }); //# sourceMappingURL=results.js.map