chore: kanban template
This commit is contained in:
13
db/sqlite/0001-init.sql
Normal file
13
db/sqlite/0001-init.sql
Normal 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);
|
||||
16
db/sqlite/0002-better-auth.sql
Normal file
16
db/sqlite/0002-better-auth.sql
Normal 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");
|
||||
Reference in New Issue
Block a user