updated login/signup form to shadcn
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `location` on the `Event` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "Event" DROP COLUMN "location",
|
||||
ADD COLUMN "locationid" TEXT;
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "Location" (
|
||||
"id" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"address" TEXT NOT NULL,
|
||||
"city" TEXT NOT NULL,
|
||||
"state" TEXT NOT NULL,
|
||||
"postalCode" TEXT NOT NULL,
|
||||
"country" TEXT NOT NULL DEFAULT 'United States',
|
||||
"phone" TEXT,
|
||||
"email" TEXT,
|
||||
|
||||
CONSTRAINT "Location_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "Event" ADD CONSTRAINT "Event_locationid_fkey" FOREIGN KEY ("locationid") REFERENCES "Location"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -28,16 +28,31 @@ model Event {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
date DateTime?
|
||||
location String?
|
||||
location Location? @relation(fields: [locationid], references: [id])
|
||||
locationid String?
|
||||
creator User @relation("EventCreator", fields: [creatorId], references: [id])
|
||||
creatorId String
|
||||
guests Guest[]
|
||||
eventGuests EventGuest[]
|
||||
notes String?
|
||||
todos EventTodo[]
|
||||
todos EventTodo[]
|
||||
createdAt DateTime @default(now())
|
||||
}
|
||||
|
||||
model Location {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
address String
|
||||
city String
|
||||
state String
|
||||
postalCode String
|
||||
country String @default("United States")
|
||||
phone String?
|
||||
email String?
|
||||
|
||||
Event Event[]
|
||||
}
|
||||
|
||||
model Guest {
|
||||
id String @id @default(cuid())
|
||||
event Event @relation(fields: [eventId], references: [id])
|
||||
|
||||
Reference in New Issue
Block a user