added vendors table

This commit is contained in:
2026-01-27 12:23:59 -05:00
parent ecd7182153
commit 3aa9b6f325
20 changed files with 1058 additions and 5 deletions

View File

@@ -41,6 +41,8 @@ model Event {
createdAt DateTime @default(now())
FileUpload FileUpload[]
vendors Vendor[]
}
model Venue {
@@ -155,8 +157,8 @@ model Vendor {
contactPerson String?
email String?
phone String?
address Address @relation(fields: [addressId], references: [id])
addressId String
address Address? @relation(fields: [addressId], references: [id])
addressId String?
status VendorStatus @default(CONTACTING)
isBooked Boolean @default(false)
@@ -169,7 +171,7 @@ model Vendor {
finalPaymentDue DateTime?
paymentNotes String?
contactUrl String?
contractUrl String?
proposalUrl String?
notes String?
@@ -184,7 +186,8 @@ model Address {
city String
state String
zip Int
Vendor Vendor[]
vendors Vendor[]
}
model Category {