-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad186ae
commit 537ff7a
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// These schemas are all in a "client" database. There is only one client | ||
// database and it contains information that is shared across all projects on a | ||
// device | ||
import { sqliteTable } from 'drizzle-orm/sqlite-core' | ||
import { dereferencedDocSchemas as schemas } from '@mapeo/schema' | ||
import { jsonSchemaToDrizzleColumns as toColumns } from './schema-to-drizzle.js' | ||
|
||
export const projectTable = sqliteTable('project', toColumns(schemas.project)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters