chore: kanban template

This commit is contained in:
e2e
2026-06-21 21:47:10 +02:00
commit 908a5eae6c
209 changed files with 215578 additions and 0 deletions

13
sql/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 TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS kanban_card_status_idx ON kanban_card(status);

44
sql/0002-auth.sql Normal file
View File

@@ -0,0 +1,44 @@
CREATE TABLE IF NOT EXISTS authjs_users (
id TEXT PRIMARY KEY,
name TEXT,
email TEXT UNIQUE,
"emailVerified" TIMESTAMPTZ,
image TEXT
);
CREATE TABLE IF NOT EXISTS authjs_accounts (
"userId" TEXT NOT NULL REFERENCES authjs_users(id) ON DELETE CASCADE,
type TEXT NOT NULL,
provider TEXT NOT NULL,
"providerAccountId" TEXT NOT NULL,
refresh_token TEXT,
access_token TEXT,
expires_at INTEGER,
token_type TEXT,
scope TEXT,
id_token TEXT,
session_state TEXT,
PRIMARY KEY (provider, "providerAccountId")
);
CREATE TABLE IF NOT EXISTS authjs_sessions (
"sessionToken" TEXT PRIMARY KEY,
"userId" TEXT NOT NULL REFERENCES authjs_users(id) ON DELETE CASCADE,
expires TIMESTAMPTZ NOT NULL
);
CREATE TABLE IF NOT EXISTS authjs_verification_token (
identifier TEXT NOT NULL,
token TEXT NOT NULL,
expires TIMESTAMPTZ NOT NULL,
PRIMARY KEY (identifier, token)
);
CREATE INDEX IF NOT EXISTS authjs_accounts_user_idx ON authjs_accounts("userId");
CREATE INDEX IF NOT EXISTS authjs_sessions_user_idx ON authjs_sessions("userId");
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;