chore: kanban template

This commit is contained in:
e2e
2026-06-21 19:23:05 +02:00
commit 758d1c7953
209 changed files with 215578 additions and 0 deletions

6
db/annotations.ts Normal file
View File

@@ -0,0 +1,6 @@
import type { DbClassificationMap } from '../.pikku/db/classification-map.gen.d.ts'
export const classifications = {
"kanban_card": {
},
} satisfies DbClassificationMap

8
db/sqlite-seed.sql Normal file
View File

@@ -0,0 +1,8 @@
-- Demo seed data. Runs after migrations in local dev only (never in production).
-- All statements must be idempotent (INSERT OR IGNORE / ON CONFLICT DO NOTHING).
INSERT INTO kanban_card (card_id, title, description, status, priority, position)
VALUES
('card-seed-1', 'Wire up local sandbox', 'Boot the project and verify the preview stack.', 'doing', 'high', 1),
('card-seed-2', 'Polish board interactions', 'Tighten drag/drop and empty-state behavior.', 'todo', 'medium', 1)
ON CONFLICT DO NOTHING;

13
db/sqlite/0001-init.sql Normal file
View File

@@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS kanban_card (
card_id TEXT PRIMARY KEY,
title TEXT NOT NULL,
description TEXT,
status TEXT NOT NULL DEFAULT 'todo',
priority TEXT NOT NULL DEFAULT 'medium',
position INTEGER NOT NULL DEFAULT 0,
due_at TEXT,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS kanban_card_status_idx ON kanban_card(status);

View File

@@ -0,0 +1,16 @@
-- Generated by `pikku db generate` from pikkuBetterAuth (Better Auth).
-- Re-run the command after changing the auth config.
create table "user" ("id" text not null primary key, "name" text not null, "email" text not null unique, "email_verified" integer not null, "image" text, "created_at" date not null, "updated_at" date not null);
create table "session" ("id" text not null primary key, "expires_at" date not null, "token" text not null unique, "created_at" date not null, "updated_at" date not null, "ip_address" text, "user_agent" text, "user_id" text not null references "user" ("id") on delete cascade);
create table "account" ("id" text not null primary key, "account_id" text not null, "provider_id" text not null, "user_id" text not null references "user" ("id") on delete cascade, "access_token" text, "refresh_token" text, "id_token" text, "access_token_expires_at" date, "refresh_token_expires_at" date, "scope" text, "password" text, "created_at" date not null, "updated_at" date not null);
create table "verification" ("id" text not null primary key, "identifier" text not null, "value" text not null, "expires_at" date not null, "created_at" date not null, "updated_at" date not null);
create index "session_user_id_idx" on "session" ("user_id");
create index "account_user_id_idx" on "account" ("user_id");
create index "verification_identifier_idx" on "verification" ("identifier");