feat(db): add drizzle schema for vocabulary and deck tables
- terms, translations, term_glosses with cascade deletes and pos check constraint - language_pairs with source/target language check constraints and no-self-pair guard - users with openauth_sub as identity provider key - decks and deck_terms with composite PK and position ordering - indexes on all hot query paths (distractor generation, deck lookups, FK joins) - SUPPORTED_POS and SUPPORTED_LANGUAGE_CODES as single source of truth in @glossa/shared
This commit is contained in:
parent
be7a7903c5
commit
55885336ba
6 changed files with 203 additions and 1 deletions
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
|
|
@ -112,6 +112,9 @@ importers:
|
|||
|
||||
packages/db:
|
||||
dependencies:
|
||||
'@glossa/shared':
|
||||
specifier: workspace:*
|
||||
version: link:../shared
|
||||
dotenv:
|
||||
specifier: ^17.3.1
|
||||
version: 17.3.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue