diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 16:54:28 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-27 16:54:28 +0200 |
| commit | 71ca66bcba70f7a463df6ee9bdcb0e14b8e60595 (patch) | |
| tree | 6e962f0d8c3346fd871cb337f9c5a14e4c0f0a08 /drizzle/meta | |
| parent | ed39c60ebc10efe2b644172e7c82f943c4fba3cc (diff) | |
feat: minimal grocery list — add items, check them off
- Groceries DB schema (id, name, checked, created_at) with Drizzle + libsql
- /+page.server.ts: load (unchecked items, newest first), add & toggle actions
- /+page.svelte: text input + Add button, item list with toggle buttons
- Mobile-first styling with scoped CSS classes
- AGENTS.md: project-specific rules including UI validation
Diffstat (limited to 'drizzle/meta')
| -rw-r--r-- | drizzle/meta/0000_snapshot.json | 57 | ||||
| -rw-r--r-- | drizzle/meta/_journal.json | 13 |
2 files changed, 70 insertions, 0 deletions
diff --git a/drizzle/meta/0000_snapshot.json b/drizzle/meta/0000_snapshot.json new file mode 100644 index 0000000..99fa112 --- /dev/null +++ b/drizzle/meta/0000_snapshot.json @@ -0,0 +1,57 @@ +{ + "version": "6", + "dialect": "sqlite", + "id": "265bc06f-5de9-43a2-9427-39ce061f134c", + "prevId": "00000000-0000-0000-0000-000000000000", + "tables": { + "groceries": { + "name": "groceries", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "checked": { + "name": "checked", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + } +} diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json new file mode 100644 index 0000000..77a9b2e --- /dev/null +++ b/drizzle/meta/_journal.json @@ -0,0 +1,13 @@ +{ + "version": "7", + "dialect": "sqlite", + "entries": [ + { + "idx": 0, + "version": "6", + "when": 1785163537728, + "tag": "0000_known_scarecrow", + "breakpoints": true + } + ] +} |
