added vendors table
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user