 fe35cf6570
			
		
	
	
		fe35cf6570
		
			
		
	
	
	
	
		
			
			* Moved prisma to packages * Add missing prisma configs * Extracts common libs and types * Build and pipeline fixes * Adds missing package * Prisma scripts cleanup * Updates lint staged * Type fixes * Sort imports * Updates yarn lock file * Fixes for yarn dx * Revert "Sort imports" This reverts commit 076109decab9b9ba307fc03696c3b0da5c4896f3. * Formatting * Prevent double TS version * Fix conflict * Extracted e2e configs
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- AlterTable
 | |
| ALTER TABLE "EventType" ADD COLUMN     "timeZone" TEXT;
 | |
| 
 | |
| -- CreateTable
 | |
| CREATE TABLE "Availability" (
 | |
|     "id" SERIAL NOT NULL,
 | |
|     "label" TEXT,
 | |
|     "userId" INTEGER,
 | |
|     "eventTypeId" INTEGER,
 | |
|     "days" INTEGER[],
 | |
|     "startTime" INTEGER NOT NULL,
 | |
|     "endTime" INTEGER NOT NULL,
 | |
|     "date" DATE,
 | |
| 
 | |
|     PRIMARY KEY ("id")
 | |
| );
 | |
| 
 | |
| -- AddForeignKey
 | |
| ALTER TABLE "Availability" ADD FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
 | |
| 
 | |
| -- AddForeignKey
 | |
| ALTER TABLE "Availability" ADD FOREIGN KEY ("eventTypeId") REFERENCES "EventType"("id") ON DELETE SET NULL ON UPDATE CASCADE;
 |