EmberClone/apps/api/drizzle/0005_gigantic_thunderbird.sql

10 lines
432 B
SQL

CREATE TABLE IF NOT EXISTS "project_templates" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"name" text NOT NULL,
"default_billable" boolean DEFAULT true NOT NULL,
"estimated_hours" integer,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "customers" ADD COLUMN "tags" text[] DEFAULT '{}' NOT NULL;--> statement-breakpoint
ALTER TABLE "time_entries" ADD COLUMN "notes" text;