aboutsummaryrefslogtreecommitdiff
path: root/drizzle
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-07-27 16:54:28 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-07-27 16:54:28 +0200
commit71ca66bcba70f7a463df6ee9bdcb0e14b8e60595 (patch)
tree6e962f0d8c3346fd871cb337f9c5a14e4c0f0a08 /drizzle
parented39c60ebc10efe2b644172e7c82f943c4fba3cc (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')
-rw-r--r--drizzle/0000_known_scarecrow.sql6
-rw-r--r--drizzle/meta/0000_snapshot.json57
-rw-r--r--drizzle/meta/_journal.json13
3 files changed, 76 insertions, 0 deletions
diff --git a/drizzle/0000_known_scarecrow.sql b/drizzle/0000_known_scarecrow.sql
new file mode 100644
index 0000000..7d70133
--- /dev/null
+++ b/drizzle/0000_known_scarecrow.sql
@@ -0,0 +1,6 @@
+CREATE TABLE `groceries` (
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
+ `name` text NOT NULL,
+ `checked` integer DEFAULT false NOT NULL,
+ `created_at` text NOT NULL
+);
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
+ }
+ ]
+}