Files
XBid/prisma/migrations/20260524212520_add_task_templates/migration.sql
T
2026-08-18 12:11:20 +02:00

24 lines
843 B
SQL

-- CreateTable
CREATE TABLE "task_templates" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"taskName" TEXT NOT NULL,
"artistRole" TEXT,
"rateCardId" TEXT,
"quantityHours" DECIMAL(10,4) NOT NULL DEFAULT 0,
"dailyRate" DECIMAL(10,4) NOT NULL DEFAULT 0,
"hoursPerDay" DECIMAL(5,2) NOT NULL DEFAULT 8,
"numArtists" DECIMAL(5,2) NOT NULL DEFAULT 1,
"numDays" DECIMAL(10,4) NOT NULL DEFAULT 0,
"manualHourlyRate" DECIMAL(10,4),
"manualSubtotal" DECIMAL(14,4),
"markupPercent" DECIMAL(10,4) NOT NULL DEFAULT 0,
"discountPercent" DECIMAL(10,4) NOT NULL DEFAULT 0,
"taxPercent" DECIMAL(10,4) NOT NULL DEFAULT 0,
"notes" TEXT,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "task_templates_pkey" PRIMARY KEY ("id")
);