Skip to content

feat: add d1 schema and migrations#37

Merged
thomas-rx merged 1 commit intofeature/backendfrom
feature/backend-us-11-d1
Mar 20, 2026
Merged

feat: add d1 schema and migrations#37
thomas-rx merged 1 commit intofeature/backendfrom
feature/backend-us-11-d1

Conversation

@thomas-rx
Copy link
Copy Markdown
Collaborator

Context

Stack the D1 work on top of feature/backend to keep the bootstrap PR focused.
Refs #11.

Changes

  • add the D1 binding config and generated Worker types for typed access to env.DB
  • add the initial SQL migration and local scripts to list and apply migrations
  • update backend tests for the stricter Workers runtime typings

@thomas-rx thomas-rx requested a review from kvnpetit March 20, 2026 09:31
@kvnpetit kvnpetit added this to the MVP Backend milestone Mar 20, 2026
@kvnpetit kvnpetit added backend Backend, API ou infrastructure Cloudflare infra Initialisation projet, runtime, base de donnees ou structure mvp Necessaire pour la premiere version jouable labels Mar 20, 2026
@thomas-rx thomas-rx merged commit 027abd7 into feature/backend Mar 20, 2026
@thomas-rx thomas-rx deleted the feature/backend-us-11-d1 branch March 20, 2026 09:39
@thomas-rx thomas-rx restored the feature/backend-us-11-d1 branch March 20, 2026 09:44
@thomas-rx thomas-rx deleted the feature/backend-us-11-d1 branch March 20, 2026 09:45
thomas-rx added a commit that referenced this pull request Mar 20, 2026
* docs: add backend specification

* feat: bootstrap workers backend

* docs: remove backend specification

* feat: add d1 schema and migrations

* Revert "feat: add d1 schema and migrations"

This reverts commit 13d95eb.

* feat: add d1 schema and migrations (#37)

* feat: add anonymous player registration (#39)

* feat: add game session creation
thomas-rx added a commit that referenced this pull request Mar 20, 2026
thomas-rx added a commit that referenced this pull request Mar 20, 2026
* docs: add backend specification

* feat: bootstrap workers backend

* docs: remove backend specification

* feat: add d1 schema and migrations

* Revert "feat: add d1 schema and migrations"

This reverts commit 13d95eb.

* feat: add d1 schema and migrations (#37)

* feat: add anonymous player registration (#39)

* feat: add game session creation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend, API ou infrastructure Cloudflare infra Initialisation projet, runtime, base de donnees ou structure mvp Necessaire pour la premiere version jouable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants