51f95e0fd6
Part of GRO-802 monorepo breakdown. Changes: - Extract apps/api/ as the main API service - Inline packages/db/ (database schema, migrations, utilities) - Inline packages/types/ (shared TypeScript types) - Add CI workflow for lint, typecheck, test, build, docker - Port Dockerfile with 4 stages: runner, migrate, seed, reset Co-Authored-By: Paperclip <noreply@paperclip.ing>
16 lines
615 B
SQL
16 lines
615 B
SQL
CREATE TABLE IF NOT EXISTS "business_settings" (
|
|
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"business_name" text DEFAULT 'GroomBook' NOT NULL,
|
|
"logo_base64" text,
|
|
"logo_mime_type" text,
|
|
"primary_color" text DEFAULT '#4f8a6f' NOT NULL,
|
|
"accent_color" text DEFAULT '#8b7355' NOT NULL,
|
|
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
);
|
|
|
|
-- Seed a default row so GET always returns something
|
|
INSERT INTO "business_settings" ("business_name", "primary_color", "accent_color")
|
|
VALUES ('GroomBook', '#4f8a6f', '#8b7355')
|
|
ON CONFLICT DO NOTHING;
|