11model RentalInformation {
2- @ @map (" hyinf " )
3- id String @id (map : " pkhyinf " ) @map (" keyhyinf " ) @db.Char (15 )
4- propertyObjectId String @unique ( map : " akhyinf1 " ) @map (" keycmobj " ) @db.Char (15 )
5- rentalInformationTypeId String @map (" keyhyint " ) @db.Char (15 )
2+ id String @id ( map : " pkhyinf " ) @map (" keyhyinf " ) @db.Char ( 15 )
3+ propertyObjectId String @unique (map : " akhyinf1 " ) @map (" keycmobj " ) @db.Char (15 )
4+ rentalInformationTypeId String @map (" keyhyint " ) @db.Char (15 )
5+ apartmentNumber String ? @map (" lmnr " ) @db.Char (5 )
66 // Exclude unused fields
77
8- // shownByUserId String? @map("keybkvis") @db.Char(15) // TODO: Confirm relation name if changed
9- // indexSeriesId String? @map("keycmind") @db.Char(15)
10- // indexValueId String? @map("keycminv") @db.Char(15)
11- // quantityTypeId String? @map("keycmvat") @db.Char(15)
12- // quantityTypeId2 String? @map("keycmvat2") @db.Char(15)
13- // quantityTypeId3 String? @map("keycmvat3") @db.Char(15)
14- // quantityTypeId4 String? @map("keycmvat4") @db.Char(15)
15- // taxAreaId String? @map("keyhyvaa") @db.Char(15)
16- // heatingId String? @map("keybahea") @db.Char(15)
17- // renovationExemptionId String? @map("keybarex") @db.Char(15)
18- // creditTemplateId String? @map("keycmcte") @db.Char(15)
19- // rentId String? @map("hyresid") @db.VarChar(30)
20- // generation Int? @map("generation") @db.SmallInt
21- // startGeneration Int? @map("startgen") @db.TinyInt
22- // apartmentNumber String? @map("lmnr") @db.Char(5)
23- // housingNumber String? @map("prynumber") @db.VarChar(30)
24- // shareNumber String? @map("shareno") @db.VarChar(60)
25- // tenureForm Int? @map("upplform") @db.TinyInt
26- // currentTenureForm Int? @map("upplformnu") @db.TinyInt
27- // isShortTermRental Int @map("shortstay") @db.TinyInt
28- // sharePercentage Decimal? @map("andelstal") @db.Decimal(22, 7)
29- // rentDistributionFactor Decimal? @map("aixrent") @db.Decimal(8, 7)
30- // shareValue Float? @map("sharevalue") @db.Money
31- // voteCount Int? @map("votecount") @db.TinyInt
32- // depositAdvance Float? @map("insatspre") @db.Money
33- // depositForfeit Float? @map("insatsfors") @db.Money // deposit Float? @map("insats") @db.Money // depositDate DateTime? @map("inputdate") @db.DateTime
34- // tenureFee Float? @map("upplavg") @db.Money
35- // tenureFeeDate DateTime? @map("letfeedate") @db.DateTime
36- // irrevocableCapitalContribution Float? @map("oaterkap") @db.Money
37- // originalAnnualFee Float? @map("planarsavg") @db.Money
38- // firstOccupancyDate DateTime? @map("inflyttdat") @db.DateTime
39- // queueManagement Int? @map("direktuth") @db.TinyInt
40- // baseRentAmount Float? @map("akthyratot") @db.Money
41- // contractBaseRent Float? @map("konthyra") @db.Money
42- // isDraft Int @default(0, map: "DF__hyinf__draft__535320DE") @map("draft") @db.TinyInt
43- // doNotInvoiceDeposit Int @map("ejbrinsats") @db.TinyInt
44- // doNotAllocateToInternalFund Int @map("ejbrfnd") @db.TinyInt
45- // statisticsFrom DateTime @map("statfrom") @db.DateTime
46- // statisticsTo DateTime @map("stattom") @db.DateTime
47- // rentLossFrom DateTime? @map("lossfrom") @db.DateTime
48- // rentLossTo DateTime? @map("lossto") @db.DateTime
49- // salesStop Int @map("saljstopp") @db.TinyInt
50- // housingEvaluationType Int @default(0, map: "DF__hyinf__pointtype__54474517") @map("pointtype") @db.TinyInt
51- // housingAllowance Int @default(0, map: "DF__hyinf__allowance__553B6950") @map("allowance") @db.TinyInt
52- // housingEnergyClass Int @default(0, map: "DF__hyinf__fohenergy__562F8D89") @map("fohenergyc") @db.TinyInt
53- // targetRentPercentage Decimal? @map("targetperc") @db.Decimal(4, 1)
54- // targetRentAmount Float? @map("targetrent") @db.Money
55- // evaluationPoints Int? @map("points") @db.SmallInt
56- // minOccupants Int? @map("persmin") @db.TinyInt
57- // maxOccupants Int? @map("persmax") @db.TinyInt
58- // minAge Int? @map("persagemin") @db.TinyInt
59- // maxAge Int? @map("persagemax") @db.TinyInt
60- // minTenureMonths Int? @map("tentimemin") @db.TinyInt
61- // minIncomeRentFactor Decimal? @map("increntmin") @db.Decimal(4, 2)
62- // additionalInfo String? @map("otherinfo") @db.VarChar(200)
63- // renovationExemptionComment String? @map("rexcomment") @db.VarChar(200)
64- // firstClassId Int @default(0, map: "DF__hyinf__fcobject__5723B1C2") @map("fcobject") @db.TinyInt
65- // upgradeStandard Int @default(0, map: "DF__hyinf__fcstatus__5817D5FB") @map("fcstatus") @db.TinyInt
66- // upgradeNeed Int @default(0, map: "DF__hyinf__fcupgneed__590BFA34") @map("fcupgneed") @db.TinyInt
67- // lastUpgradeDate DateTime? @map("fcdate") @db.DateTime
68- // upgradeComment String? @map("fccomment") @db.VarChar(250)
69- // isBGUCovered Int @default(0, map: "DF__hyinf__bguused__5A001E6D") @map("bguused") @db.TinyInt
70- // hasLakeView Int @default(0, map: "DF__hyinf__lakeview__5AF442A6") @map("lakeview") @db.TinyInt
71- // vatRate Decimal @default(0, map: "DF__hyinf__vatstat__5BE866DF") @map("vatstat") @db.Decimal(4, 2)
72- // purposeLabel Int @default(1, map: "DF__hyinf__label__5CDC8B18") @map("label") @db.TinyInt
73- // isRenovated Int @default(0, map: "DF__hyinf__renovatio__5DD0AF51") @map("renovation") @db.TinyInt
74- // daebStatus Int @default(1, map: "DF__hyinf__daeb__5EC4D38A") @map("daeb") @db.TinyInt
75- // standardYearRent Float? @map("stdyrrent") @db.Money
76- // discountFee Float @default(0, map: "DF__hyinf__discfee__5FB8F7C3") @map("discfee") @db.Money
77- // rentCalculationMethod Int @default(0, map: "DF__hyinf__rentcalcm__60AD1BFC") @map("rentcalcm") @db.TinyInt
78- // deleteMark Int @default(0, map: "DF__hyinf__deletemar__61A14035") @map("deletemark") @db.TinyInt
79- // timestamp String @map("timestamp") @db.Char(10)
8+ // shownByUserId String? @map("keybkvis") @db.Char(15) // TODO: Confirm relation name if changed
9+ // indexSeriesId String? @map("keycmind") @db.Char(15)
10+ // indexValueId String? @map("keycminv") @db.Char(15)
11+ // quantityTypeId String? @map("keycmvat") @db.Char(15)
12+ // quantityTypeId2 String? @map("keycmvat2") @db.Char(15)
13+ // quantityTypeId3 String? @map("keycmvat3") @db.Char(15)
14+ // quantityTypeId4 String? @map("keycmvat4") @db.Char(15)
15+ // taxAreaId String? @map("keyhyvaa") @db.Char(15)
16+ // heatingId String? @map("keybahea") @db.Char(15)
17+ // renovationExemptionId String? @map("keybarex") @db.Char(15)
18+ // creditTemplateId String? @map("keycmcte") @db.Char(15)
19+ // rentId String? @map("hyresid") @db.VarChar(30)
20+ // generation Int? @map("generation") @db.SmallInt
21+ // startGeneration Int? @map("startgen") @db.TinyInt
22+ // housingNumber String? @map("prynumber") @db.VarChar(30)
23+ // shareNumber String? @map("shareno") @db.VarChar(60)
24+ // tenureForm Int? @map("upplform") @db.TinyInt
25+ // currentTenureForm Int? @map("upplformnu") @db.TinyInt
26+ // isShortTermRental Int @map("shortstay") @db.TinyInt
27+ // sharePercentage Decimal? @map("andelstal") @db.Decimal(22, 7)
28+ // rentDistributionFactor Decimal? @map("aixrent") @db.Decimal(8, 7)
29+ // shareValue Float? @map("sharevalue") @db.Money
30+ // voteCount Int? @map("votecount") @db.TinyInt
31+ // depositAdvance Float? @map("insatspre") @db.Money
32+ // depositForfeit Float? @map("insatsfors") @db.Money // deposit Float? @map("insats") @db.Money // depositDate DateTime? @map("inputdate") @db.DateTime
33+ // tenureFee Float? @map("upplavg") @db.Money
34+ // tenureFeeDate DateTime? @map("letfeedate") @db.DateTime
35+ // irrevocableCapitalContribution Float? @map("oaterkap") @db.Money
36+ // originalAnnualFee Float? @map("planarsavg") @db.Money
37+ // firstOccupancyDate DateTime? @map("inflyttdat") @db.DateTime
38+ // queueManagement Int? @map("direktuth") @db.TinyInt
39+ // baseRentAmount Float? @map("akthyratot") @db.Money
40+ // contractBaseRent Float? @map("konthyra") @db.Money
41+ // isDraft Int @default(0, map: "DF__hyinf__draft__535320DE") @map("draft") @db.TinyInt
42+ // doNotInvoiceDeposit Int @map("ejbrinsats") @db.TinyInt
43+ // doNotAllocateToInternalFund Int @map("ejbrfnd") @db.TinyInt
44+ // statisticsFrom DateTime @map("statfrom") @db.DateTime
45+ // statisticsTo DateTime @map("stattom") @db.DateTime
46+ // rentLossFrom DateTime? @map("lossfrom") @db.DateTime
47+ // rentLossTo DateTime? @map("lossto") @db.DateTime
48+ // salesStop Int @map("saljstopp") @db.TinyInt
49+ // housingEvaluationType Int @default(0, map: "DF__hyinf__pointtype__54474517") @map("pointtype") @db.TinyInt
50+ // housingAllowance Int @default(0, map: "DF__hyinf__allowance__553B6950") @map("allowance") @db.TinyInt
51+ // housingEnergyClass Int @default(0, map: "DF__hyinf__fohenergy__562F8D89") @map("fohenergyc") @db.TinyInt
52+ // targetRentPercentage Decimal? @map("targetperc") @db.Decimal(4, 1)
53+ // targetRentAmount Float? @map("targetrent") @db.Money
54+ // evaluationPoints Int? @map("points") @db.SmallInt
55+ // minOccupants Int? @map("persmin") @db.TinyInt
56+ // maxOccupants Int? @map("persmax") @db.TinyInt
57+ // minAge Int? @map("persagemin") @db.TinyInt
58+ // maxAge Int? @map("persagemax") @db.TinyInt
59+ // minTenureMonths Int? @map("tentimemin") @db.TinyInt
60+ // minIncomeRentFactor Decimal? @map("increntmin") @db.Decimal(4, 2)
61+ // additionalInfo String? @map("otherinfo") @db.VarChar(200)
62+ // renovationExemptionComment String? @map("rexcomment") @db.VarChar(200)
63+ // firstClassId Int @default(0, map: "DF__hyinf__fcobject__5723B1C2") @map("fcobject") @db.TinyInt
64+ // upgradeStandard Int @default(0, map: "DF__hyinf__fcstatus__5817D5FB") @map("fcstatus") @db.TinyInt
65+ // upgradeNeed Int @default(0, map: "DF__hyinf__fcupgneed__590BFA34") @map("fcupgneed") @db.TinyInt
66+ // lastUpgradeDate DateTime? @map("fcdate") @db.DateTime
67+ // upgradeComment String? @map("fccomment") @db.VarChar(250)
68+ // isBGUCovered Int @default(0, map: "DF__hyinf__bguused__5A001E6D") @map("bguused") @db.TinyInt
69+ // hasLakeView Int @default(0, map: "DF__hyinf__lakeview__5AF442A6") @map("lakeview") @db.TinyInt
70+ // vatRate Decimal @default(0, map: "DF__hyinf__vatstat__5BE866DF") @map("vatstat") @db.Decimal(4, 2)
71+ // purposeLabel Int @default(1, map: "DF__hyinf__label__5CDC8B18") @map("label") @db.TinyInt
72+ // isRenovated Int @default(0, map: "DF__hyinf__renovatio__5DD0AF51") @map("renovation") @db.TinyInt
73+ // daebStatus Int @default(1, map: "DF__hyinf__daeb__5EC4D38A") @map("daeb") @db.TinyInt
74+ // standardYearRent Float? @map("stdyrrent") @db.Money
75+ // discountFee Float @default(0, map: "DF__hyinf__discfee__5FB8F7C3") @map("discfee") @db.Money
76+ // rentCalculationMethod Int @default(0, map: "DF__hyinf__rentcalcm__60AD1BFC") @map("rentcalcm") @db.TinyInt
77+ // deleteMark Int @default(0, map: "DF__hyinf__deletemar__61A14035") @map("deletemark") @db.TinyInt
78+ // timestamp String @map("timestamp") @db.Char(10)
8079
81- // heating Heating? @relation(fields: [heatingId], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fkhyinfbahea")
82- // creditTemplate CreditTemplate? @relation(fields: [creditTemplateId], references: [id], onUpdate: NoAction, map: "fkhyinfcmcte")
80+ // heating Heating? @relation(fields: [heatingId], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fkhyinfbahea")
81+ // creditTemplate CreditTemplate? @relation(fields: [creditTemplateId], references: [id], onUpdate: NoAction, map: "fkhyinfcmcte")
8382
8483 // TODO: change relations when knowing the new model names
8584 // indexSeries cmind? @relation(fields: [indexSeriesId], references: [keycmind], onDelete: NoAction, onUpdate: NoAction, map: "fkhyinfkeycmind")
@@ -90,16 +89,18 @@ model RentalInformation {
9089 // quantityType3 cmvat_hyinf_keycmvat3Tocmvat cmvat? @relation("hyinf_keycmvat3Tocmvat", fields: [quantityTypeId3], references: [keycmvat], onDelete: NoAction, onUpdate: NoAction, map: "fkhyinfkeycmvat3")
9190 // quantityType4 cmvat_hyinf_keycmvat4Tocmvat cmvat? @relation("hyinf_keycmvat4Tocmvat", fields: [quantityTypeId4], references: [keycmvat], onDelete: NoAction, onUpdate: NoAction, map: "fkhyinfkeycmvat4")
9291 rentalInformationType RentalInformationType @relation (fields : [rentalInformationTypeId ] , references : [id ] , onUpdate : NoAction , map : " fkhyinfkeyhyint " )
93- propertyObject PropertyObject @relation (" PropertyObjectToRentalInformation " , fields : [propertyObjectId ] , references : [id ] , map : " fkhyinfkeycmobj " )
94- // @@index([heatingId], map: "fkhyinfbahea")
95- // @@index([shownByUserId], map: "fkhyinfbkvis")
96- // @@index([creditTemplateId], map: "fkhyinfcmcte")
97- // @@index([indexSeriesId], map: "fkhyinfcmind")
98- // @@index([indexValueId], map: "fkhyinfcminv")
99- // @@index([quantityTypeId], map: "fkhyinfcmvat")
100- // @@index([quantityTypeId2], map: "fkhyinfcmvat2")
101- // @@index([quantityTypeId3], map: "fkhyinfcmvat3")
102- // @@index([quantityTypeId4], map: "fkhyinfcmvat4")
103- // @@index([rentalInformationTypeId], map: "fkhyinfhyint")
104- // @@index([rentId], map: "inhyinf_2J70GWSR9")
92+ propertyObject PropertyObject @relation (" PropertyObjectToRentalInformation " , fields : [propertyObjectId ] , references : [id ] , map : " fkhyinfkeycmobj " )
93+ // @@index([heatingId], map: "fkhyinfbahea")
94+ // @@index([shownByUserId], map: "fkhyinfbkvis")
95+ // @@index([creditTemplateId], map: "fkhyinfcmcte")
96+ // @@index([indexSeriesId], map: "fkhyinfcmind")
97+ // @@index([indexValueId], map: "fkhyinfcminv")
98+ // @@index([quantityTypeId], map: "fkhyinfcmvat")
99+ // @@index([quantityTypeId2], map: "fkhyinfcmvat2")
100+ // @@index([quantityTypeId3], map: "fkhyinfcmvat3")
101+ // @@index([quantityTypeId4], map: "fkhyinfcmvat4")
102+ // @@index([rentalInformationTypeId], map: "fkhyinfhyint")
103+ // @@index([rentId], map: "inhyinf_2J70GWSR9")
104+
105+ @@map (" hyinf " )
105106}
0 commit comments