@@ -64,6 +64,7 @@ model Address {
6464 leasingAgentAddress Listings [] @relation (" leasing_agent_address " )
6565 applicationPickUpAddress Listings [] @relation (" application_pick_up_address " )
6666 buildingAddress Listings [] @relation (" building_address " )
67+ userAccounts UserAccounts []
6768
6869 @@map (" address " )
6970}
@@ -1042,6 +1043,19 @@ model UserAccounts {
10421043 lastUpdatedListingsByUser Listings [] @relation (" last_updated_by_user " )
10431044 wasWarnedOfDeletion Boolean ? @default (false ) @map (" was_warned_of_deletion " )
10441045
1046+ title String ?
1047+ address Address ? @relation (fields : [addressId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
1048+ addressId String ? @map (" address_id " ) @db.Uuid
1049+ phoneType String ? @map (" phone_type " )
1050+ phoneExtension String ? @map (" phone_extension " )
1051+ additionalPhoneNumber String ? @map (" additional_phone_number " )
1052+ additionalPhoneNumberType String ? @map (" additional_phone_number_type " )
1053+ additionalPhoneExtension String ? @map (" additional_phone_extension " )
1054+ agency Agency ? @relation (fields : [agencyId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
1055+ agencyId String ? @map (" agency_id " ) @db.Uuid
1056+ isApproved Boolean @default (false ) @map (" is_approved " )
1057+ isAdvocate Boolean @default (false ) @map (" is_advocate " )
1058+
10451059 @@map (" user_accounts " )
10461060}
10471061
@@ -1163,6 +1177,7 @@ model Agency {
11631177 name String
11641178 jurisdictions Jurisdictions ? @relation (fields : [jurisdictionsId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
11651179 jurisdictionsId String ? @map (" jurisdictions_id " ) @db.Uuid
1180+ userAccounts UserAccounts []
11661181
11671182 @@map (" agency " )
11681183}
0 commit comments