@@ -178,12 +178,12 @@ model ApplicationSelectionOptions {
178178 addressHolderAddressId String ? @unique () @map (" address_holder_address_id " ) @db.Uuid
179179 addressHolderName String ? @map (" address_holder_name " )
180180 addressHolderRelationship String ? @map (" address_holder_relationship " )
181- applicationSelectionId String @map (" application_selection_id " ) @db.Uuid
182- isGeocodingVerified Boolean ? @map (" is_geocoding_verified " )
183- multiselectOptionId String @map (" multiselect_option_id " ) @db.Uuid
184- addressHolderAddress Address ? @relation (" application_selection_address " , fields : [addressHolderAddressId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
185- applicationSelections ApplicationSelections @relation (fields : [applicationSelectionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
186- multiselectOption MultiselectOptions @relation (fields : [multiselectOptionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
181+ applicationSelectionId String @map (" application_selection_id " ) @db.Uuid
182+ isGeocodingVerified Boolean ? @map (" is_geocoding_verified " )
183+ multiselectOptionId String @map (" multiselect_option_id " ) @db.Uuid
184+ addressHolderAddress Address ? @relation (" application_selection_address " , fields : [addressHolderAddressId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
185+ applicationSelections ApplicationSelections @relation (fields : [applicationSelectionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
186+ multiselectOption MultiselectOptions @relation (fields : [multiselectOptionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
187187
188188 @@map (" application_selection_options " )
189189}
@@ -195,9 +195,9 @@ model ApplicationSelections {
195195 applicationId String @map (" application_id " ) @db.Uuid
196196 hasOptedOut Boolean ? @map (" has_opted_out " )
197197 multiselectQuestionId String @map (" multiselect_question_id " ) @db.Uuid
198- application Applications @relation (fields : [applicationId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
199- multiselectQuestion MultiselectQuestions @relation (fields : [multiselectQuestionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
200- selections ApplicationSelectionOptions []
198+ application Applications @relation (fields : [applicationId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
199+ multiselectQuestion MultiselectQuestions @relation (fields : [multiselectQuestionId ] , references : [id ] , onDelete : NoAction , onUpdate : NoAction )
200+ selections ApplicationSelectionOptions []
201201
202202 @@map (" application_selections " )
203203}
@@ -371,35 +371,36 @@ model HouseholdMember {
371371
372372// Note: [name] formerly max length 256
373373model Jurisdictions {
374- id String @id () @default (dbgenerated (" uuid_generate_v4 ()" ) ) @db.Uuid
375- createdAt DateTime @default (now () ) @map (" created_at " ) @db.Timestamp (6 )
376- updatedAt DateTime @updatedAt @map (" updated_at " ) @db.Timestamp (6 )
377- name String @unique ()
378- notificationsSignUpUrl String ? @map (" notifications_sign_up_url " )
379- languages LanguagesEnum [] @default ([en ] )
380- partnerTerms String ? @map (" partner_terms " )
381- publicUrl String @default (" " ) @map (" public_url " )
382- emailFromAddress String ? @map (" email_from_address " )
383- rentalAssistanceDefault String @map (" rental_assistance_default " )
384- whatToExpect String @default (" Applicants will be contacted by the property agent in rank order until vacancies are filled. All of the information that you have provided will be verified and your eligibility confirmed. Your application will be removed from the waitlist if you have made any fraudulent statements. If we cannot verify a housing preference that you have claimed , you will not receive the preference but will not be otherwise penalized. Should your application be chosen , be prepared to fill out a more detailed application and provide required supporting documents. " ) @map (" what_to_expect " )
385- whatToExpectAdditionalText String @default (" " ) @map (" what_to_expect_additional_text " )
386- whatToExpectUnderConstruction String @default (" " ) @map (" what_to_expect_under_construction " )
387- enablePartnerSettings Boolean @default (false ) @map (" enable_partner_settings " )
388- enablePartnerDemographics Boolean @default (false ) @map (" enable_partner_demographics " )
389- enableGeocodingPreferences Boolean @default (false ) @map (" enable_geocoding_preferences " )
390- enableGeocodingRadiusMethod Boolean @default (false ) @map (" enable_geocoding_radius_method " )
391- enableListingOpportunity Boolean @default (false ) @map (" enable_listing_opportunity " )
392- allowSingleUseCodeLogin Boolean @default (false ) @map (" allow_single_use_code_login " )
374+ id String @id () @default (dbgenerated (" uuid_generate_v4 ()" ) ) @db.Uuid
375+ createdAt DateTime @default (now () ) @map (" created_at " ) @db.Timestamp (6 )
376+ updatedAt DateTime @updatedAt @map (" updated_at " ) @db.Timestamp (6 )
377+ name String @unique ()
378+ notificationsSignUpUrl String ? @map (" notifications_sign_up_url " )
379+ languages LanguagesEnum [] @default ([en ] )
380+ partnerTerms String ? @map (" partner_terms " )
381+ publicUrl String @default (" " ) @map (" public_url " )
382+ emailFromAddress String ? @map (" email_from_address " )
383+ rentalAssistanceDefault String @map (" rental_assistance_default " )
384+ whatToExpect String @default (" Applicants will be contacted by the property agent in rank order until vacancies are filled. All of the information that you have provided will be verified and your eligibility confirmed. Your application will be removed from the waitlist if you have made any fraudulent statements. If we cannot verify a housing preference that you have claimed , you will not receive the preference but will not be otherwise penalized. Should your application be chosen , be prepared to fill out a more detailed application and provide required supporting documents. " ) @map (" what_to_expect " )
385+ whatToExpectAdditionalText String @default (" " ) @map (" what_to_expect_additional_text " )
386+ whatToExpectUnderConstruction String @default (" " ) @map (" what_to_expect_under_construction " )
387+ enablePartnerSettings Boolean @default (false ) @map (" enable_partner_settings " )
388+ enablePartnerDemographics Boolean @default (false ) @map (" enable_partner_demographics " )
389+ enableGeocodingPreferences Boolean @default (false ) @map (" enable_geocoding_preferences " )
390+ enableGeocodingRadiusMethod Boolean @default (false ) @map (" enable_geocoding_radius_method " )
391+ enableListingOpportunity Boolean @default (false ) @map (" enable_listing_opportunity " )
392+ allowSingleUseCodeLogin Boolean @default (false ) @map (" allow_single_use_code_login " )
393393 amiChart AmiChart []
394394 featureFlags FeatureFlags []
395395 multiselectQuestions MultiselectQuestions []
396396 listings Listings []
397397 reservedCommunityTypes ReservedCommunityTypes []
398398 translations Translations []
399399 user_accounts UserAccounts []
400- listingApprovalPermissions UserRoleEnum [] @map (" listing_approval_permission " )
401- duplicateListingPermissions UserRoleEnum [] @map (" duplicate_listing_permissions " )
402- requiredListingFields String [] @default ([] ) @map (" required_listing_fields " )
400+ listingApprovalPermissions UserRoleEnum [] @map (" listing_approval_permission " )
401+ duplicateListingPermissions UserRoleEnum [] @map (" duplicate_listing_permissions " )
402+ requiredListingFields String [] @default ([] ) @map (" required_listing_fields " )
403+ visibleNeighborhoodAmenities NeighborhoodAmenitiesEnum [] @default ([groceryStores , publicTransportation , schools , parksAndCommunityCenters , pharmacies , healthCareResources ] ) @map (" visible_neighborhood_amenities " )
403404
404405 @@map (" jurisdictions " )
405406}
@@ -977,15 +978,15 @@ model UserAccounts {
977978}
978979
979980model UserRoles {
980- isAdmin Boolean @default (false ) @map (" is_admin " )
981- isJurisdictionalAdmin Boolean @default (false ) @map (" is_jurisdictional_admin " )
982- isLimitedJurisdictionalAdmin Boolean @default (false ) @map (" is_limited_jurisdictional_admin " )
983- isPartner Boolean @default (false ) @map (" is_partner " )
984- isSupportAdmin Boolean @default (false ) @map (" is_support_admin " )
981+ isAdmin Boolean @default (false ) @map (" is_admin " )
982+ isJurisdictionalAdmin Boolean @default (false ) @map (" is_jurisdictional_admin " )
983+ isLimitedJurisdictionalAdmin Boolean @default (false ) @map (" is_limited_jurisdictional_admin " )
984+ isPartner Boolean @default (false ) @map (" is_partner " )
985+ isSupportAdmin Boolean @default (false ) @map (" is_support_admin " )
985986 // Role for maintainers of the code base. Should have access to everything as well as developer specific pages
986- isSuperAdmin Boolean @default (false ) @map (" is_super_admin " )
987- userId String @id () @map (" user_id " ) @db.Uuid
988- userAccounts UserAccounts @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
987+ isSuperAdmin Boolean @default (false ) @map (" is_super_admin " )
988+ userId String @id () @map (" user_id " ) @db.Uuid
989+ userAccounts UserAccounts @relation (fields : [userId ] , references : [id ] , onDelete : Cascade )
989990
990991 @@map (" user_roles " )
991992}
@@ -1387,3 +1388,14 @@ enum ValidationMethodEnum {
13871388
13881389 @@map (" validation_method_enum " )
13891390}
1391+
1392+ enum NeighborhoodAmenitiesEnum {
1393+ groceryStores
1394+ publicTransportation
1395+ schools
1396+ parksAndCommunityCenters
1397+ pharmacies
1398+ healthCareResources
1399+
1400+ @@map (" neighborhood_amenities_enum " )
1401+ }
0 commit comments