modelBuilder .HasDefaultSchema("public") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) .HasAnnotation("ProductVersion", "3.1.6") .HasAnnotation("Relational:MaxIdentifierLength", 63); modelBuilder.Entity("BO4E.BO.Ansprechpartner", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AdresseGuid") .HasColumnType("uuid"); b.Property("Anrede") .HasColumnType("integer"); b.Property("BoTyp") .HasColumnType("text"); b.Property("EMailAdresse") .HasColumnType("text"); b.Property("GeschaeftspartnerGuid") .HasColumnType("uuid"); b.Property("IndividuelleAnrede") .HasColumnType("text"); b.Property("Kommentar") .HasColumnType("text"); b.Property("Nachname") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("Titel") .HasColumnType("integer"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VersionStruktur") .HasColumnType("integer"); b.Property("Vorname") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("AdresseGuid"); b.HasIndex("GeschaeftspartnerGuid"); b.ToTable("Ansprechpartner"); }); modelBuilder.Entity("BO4E.BO.Geschaeftspartner", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Amtsgericht") .HasColumnType("text"); b.Property("Anrede") .HasColumnType("integer"); b.Property("BoTyp") .HasColumnType("text"); b.Property("EMailAdresse") .HasColumnType("text"); b.Property>("Geschaeftspartnerrolle") .HasColumnType("text[]"); b.Property("Gewerbekennzeichnung") .HasColumnType("boolean"); b.Property("GlaeubigerId") .HasColumnType("text"); b.Property("Hrnummer") .HasColumnType("text"); b.Property>("Kontaktweg") .HasColumnType("text[]"); b.Property("Name1") .HasColumnType("text"); b.Property("Name2") .HasColumnType("text"); b.Property("Name3") .HasColumnType("text"); b.Property("PartneradresseGuid") .HasColumnType("uuid"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("Title") .HasColumnType("text"); b.Property("UmsatzsteuerId") .HasColumnType("text"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VersionStruktur") .HasColumnType("integer"); b.Property("Website") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("PartneradresseGuid"); b.ToTable("Geschaeftspartner"); }); modelBuilder.Entity("BO4E.BO.Marktlokation", b => { b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("Bilanzierungsgebiet") .HasColumnType("text"); b.Property("Bilanzierungsmethode") .HasColumnType("integer"); b.Property("BoTyp") .HasColumnType("text"); b.Property("EndkundeGuid") .HasColumnType("uuid"); b.Property("Energierichtung") .HasColumnType("integer"); b.Property("Gasqualitaet") .HasColumnType("integer"); b.Property("GebietType") .HasColumnType("integer"); b.Property("GeoadresseGuid") .HasColumnType("uuid"); b.Property("GrundversorgerCodeNr") .HasColumnType("text"); b.Property("Guid") .HasColumnType("uuid"); b.Property("KatasterinformationGuid") .HasColumnType("uuid"); b.Property("LokationsadresseGuid") .HasColumnType("uuid"); b.Property("Marktgebiet") .HasColumnType("text"); b.Property("NetzbetreiberCodeNr") .HasColumnType("text"); b.Property("Netzebene") .HasColumnType("integer"); b.Property("NetzgebietNr") .HasColumnType("text"); b.Property("Regelzone") .HasColumnType("text"); b.Property("Sparte") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("Unterbrechbar") .HasColumnType("boolean"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Verbrauchsart") .HasColumnType("integer"); b.Property("VersionStruktur") .HasColumnType("integer"); b.Property("Zeitreihentyp") .HasColumnType("integer"); b.HasKey("MarktlokationsId"); b.HasIndex("EndkundeGuid"); b.HasIndex("GeoadresseGuid"); b.HasIndex("KatasterinformationGuid"); b.HasIndex("LokationsadresseGuid"); b.ToTable("Marktlokation"); }); modelBuilder.Entity("BO4E.BO.Messlokation", b => { b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Abrechnungmessstellenbetriebnna") .HasColumnType("boolean"); b.Property("Bilanzierungsmethode") .HasColumnType("integer"); b.Property("BoTyp") .HasColumnType("text"); b.Property("Gasqualitaet") .HasColumnType("integer"); b.Property("GeoadresseGuid") .HasColumnType("uuid"); b.Property("GrundzustaendigerMDLCodeNr") .HasColumnType("text"); b.Property("GrundzustaendigerMSBCodeNr") .HasColumnType("text"); b.Property("GrundzustaendigerMSBIMCodeNr") .HasColumnType("text"); b.Property("Guid") .HasColumnType("uuid"); b.Property("KatasterinformationGuid") .HasColumnType("uuid"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("MessadresseGuid") .HasColumnType("uuid"); b.Property("MessgebietNr") .HasColumnType("text"); b.Property("NetzebeneMessung") .HasColumnType("integer"); b.Property("Sparte") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Verlustfaktor") .HasColumnType("numeric"); b.Property("VersionStruktur") .HasColumnType("integer"); b.HasKey("MesslokationsId"); b.HasIndex("GeoadresseGuid"); b.HasIndex("KatasterinformationGuid"); b.HasIndex("MarktlokationsId"); b.HasIndex("MessadresseGuid"); b.ToTable("Messlokation"); }); modelBuilder.Entity("BO4E.BO.Vertrag", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Beschreibung") .HasColumnType("text"); b.Property("BoTyp") .HasColumnType("text"); b.Property("Gemeinderabatt") .HasColumnType("numeric"); b.Property("KorrespondenzpartnerGuid") .HasColumnType("uuid"); b.Property("Sparte") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VersionStruktur") .HasColumnType("integer"); b.Property("Vertragsart") .HasColumnType("integer"); b.Property("Vertragsbeginn") .HasColumnType("timestamp with time zone"); b.Property("Vertragsende") .HasColumnType("timestamp with time zone"); b.Property("VertragskonditionenGuid") .HasColumnType("uuid"); b.Property("Vertragsnummer") .HasColumnType("text"); b.Property("Vertragspartner1Guid") .HasColumnType("uuid"); b.Property("Vertragspartner2Guid") .HasColumnType("uuid"); b.Property("Vertragstatus") .HasColumnType("integer"); b.HasKey("Guid"); b.HasIndex("KorrespondenzpartnerGuid"); b.HasIndex("VertragskonditionenGuid"); b.HasIndex("Vertragspartner1Guid"); b.HasIndex("Vertragspartner2Guid"); b.ToTable("Vertrag"); }); modelBuilder.Entity("BO4E.BO.Zaehler", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("BoTyp") .HasColumnType("text"); b.Property("EichungBis") .HasColumnType("timestamp with time zone"); b.Property("Fernschaltung") .HasColumnType("integer"); b.Property("Gateway") .HasColumnType("text"); b.Property("LetzteEichung") .HasColumnType("timestamp with time zone"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Messwerterfassung") .HasColumnType("integer"); b.Property("Sparte") .HasColumnType("integer"); b.Property("Tarifart") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VersionStruktur") .HasColumnType("integer"); b.Property("Zaehlerauspraegung") .HasColumnType("integer"); b.Property("ZaehlerherstellerGuid") .HasColumnType("uuid"); b.Property("Zaehlerkonstante") .HasColumnType("numeric"); b.Property("Zaehlernummer") .HasColumnType("text"); b.Property("Zaehlertyp") .HasColumnType("integer"); b.HasKey("Guid"); b.HasIndex("MesslokationsId"); b.HasIndex("ZaehlerherstellerGuid"); b.HasIndex("Zaehlernummer"); b.ToTable("Zaehler"); }); modelBuilder.Entity("BO4E.COM.Adresse", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Adresszusatz") .HasColumnType("text"); b.Property("CoErgaenzung") .HasColumnType("text"); b.Property("Hausnummer") .HasColumnType("text"); b.Property("Landescode") .HasColumnType("integer"); b.Property("Ort") .HasColumnType("text"); b.Property("Postfach") .HasColumnType("text"); b.Property("Postleitzahl") .HasColumnType("text"); b.Property("Strasse") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("bo4e_adresse"); }); modelBuilder.Entity("BO4E.COM.Dienstleistung", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Bezeichnung") .HasColumnType("text"); b.Property("Dienstleistungstyp") .HasColumnType("integer"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("MesslokationsId"); b.ToTable("Dienstleistung"); }); modelBuilder.Entity("BO4E.COM.ExterneReferenz", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AnsprechpartnerGuid") .HasColumnType("uuid"); b.Property("ExRefName") .HasColumnType("text"); b.Property("ExRefWert") .HasColumnType("text"); b.Property("GeschaeftspartnerGuid") .HasColumnType("uuid"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VertragGuid") .HasColumnType("uuid"); b.Property("ZaehlerGuid") .HasColumnType("uuid"); b.HasKey("Guid"); b.HasIndex("AnsprechpartnerGuid"); b.HasIndex("GeschaeftspartnerGuid"); b.HasIndex("MarktlokationsId"); b.HasIndex("MesslokationsId"); b.HasIndex("VertragGuid"); b.HasIndex("ZaehlerGuid"); b.ToTable("ExterneReferenz"); }); modelBuilder.Entity("BO4E.COM.Geokoordinaten", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Breitengrad") .HasColumnType("numeric"); b.Property("Laengengrad") .HasColumnType("numeric"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Geokoordinaten"); }); modelBuilder.Entity("BO4E.COM.Geraeteeigenschaften", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Geraetemerkmal") .HasColumnType("integer"); b.Property("Geraetetyp") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Geraeteeigenschaften"); }); modelBuilder.Entity("BO4E.COM.Hardware", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Bezeichnung") .HasColumnType("text"); b.Property("GeraeteeigenschaftenGuid") .HasColumnType("uuid"); b.Property("Geraetenummer") .HasColumnType("text"); b.Property("Geraetereferenz") .HasColumnType("text"); b.Property("Geraetetyp") .HasColumnType("integer"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("GeraeteeigenschaftenGuid"); b.HasIndex("MesslokationsId"); b.ToTable("Hardware"); }); modelBuilder.Entity("BO4E.COM.Katasteradresse", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Flurstueck") .HasColumnType("text"); b.Property("Gemarkung_flur") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Katasteradresse"); }); modelBuilder.Entity("BO4E.COM.Konzessionsabgabe", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Kategorie") .HasColumnType("text"); b.Property("Kosten") .HasColumnType("numeric"); b.Property("Satz") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Konzessionsabgabe"); }); modelBuilder.Entity("BO4E.COM.MarktpartnerDetails", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Code") .HasColumnType("text"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Rollencodenummer") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("marktrolle") .HasColumnType("integer"); b.HasKey("Guid"); b.HasIndex("MarktlokationsId"); b.HasIndex("MesslokationsId"); b.ToTable("MarktpartnerDetails"); }); modelBuilder.Entity("BO4E.COM.Menge", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Einheit") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Wert") .HasColumnType("numeric"); b.HasKey("Guid"); b.ToTable("Menge"); }); modelBuilder.Entity("BO4E.COM.Messlokationszuordnung", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Arithmetik") .HasColumnType("integer"); b.Property("GueltigBis") .HasColumnType("timestamp with time zone"); b.Property("GueltigSeit") .HasColumnType("timestamp with time zone"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("MesslokationsId") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("MarktlokationsId"); b.ToTable("Messlokationszuordnung"); }); modelBuilder.Entity("BO4E.COM.PhysikalischerWert", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Einheit") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Wert") .HasColumnType("numeric"); b.HasKey("Guid"); b.ToTable("PhysikalischerWert"); }); modelBuilder.Entity("BO4E.COM.Rufnummer", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AnsprechpartnerGuid") .HasColumnType("uuid"); b.Property("Nummerntyp") .HasColumnType("integer"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("rufnummer") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("AnsprechpartnerGuid"); b.ToTable("Rufnummer"); }); modelBuilder.Entity("BO4E.COM.Unterschrift", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Datum") .HasColumnType("timestamp with time zone"); b.Property("Name") .HasColumnType("text"); b.Property("Ort") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VertragGuid") .HasColumnType("uuid"); b.Property("VertragGuid1") .HasColumnType("uuid"); b.HasKey("Guid"); b.HasIndex("VertragGuid"); b.HasIndex("VertragGuid1"); b.ToTable("Unterschrift"); }); modelBuilder.Entity("BO4E.COM.Verbrauch", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Einheit") .HasColumnType("integer"); b.Property("Enddatum") .HasColumnType("timestamp without time zone"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("Obiskennzahl") .HasColumnType("text"); b.Property("Startdatum") .HasColumnType("timestamp without time zone"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("Type") .HasColumnType("integer"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Wert") .HasColumnType("numeric"); b.Property("Wertermittlungsverfahren") .HasColumnType("integer"); b.HasKey("Guid"); b.HasIndex("MarktlokationsId"); b.ToTable("Verbrauch"); }); modelBuilder.Entity("BO4E.COM.Vertragskonditionen", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AbschlagszyklusGuid") .HasColumnType("uuid"); b.Property("AnzahlAbschlaege") .HasColumnType("integer"); b.Property("Beschreibung") .HasColumnType("text"); b.Property("GeplanteTurnusablesungGuid") .HasColumnType("uuid"); b.Property("Haushaltskunde") .HasColumnType("boolean"); b.Property("KuendigungsfristGuid") .HasColumnType("uuid"); b.Property("NetznutzungsabrechnungGuid") .HasColumnType("uuid"); b.Property("NetznutzungsabrechnungIntervall") .HasColumnType("integer"); b.Property("Netznutzungsabrechnungsgrundlage") .HasColumnType("integer"); b.Property("Netznutzungsabrechnungsvariante") .HasColumnType("integer"); b.Property("Netznutzungsvertrag") .HasColumnType("integer"); b.Property("Netznutzungszahler") .HasColumnType("integer"); b.Property("StartAbrechnungsjahr") .HasColumnType("timestamp with time zone"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("TurnusablesungIntervall") .HasColumnType("integer"); b.Property("UserProperties") .HasColumnType("text"); b.Property("VertragslaufzeitGuid") .HasColumnType("uuid"); b.Property("VertragsverlaengerungGuid") .HasColumnType("uuid"); b.HasKey("Guid"); b.HasIndex("AbschlagszyklusGuid"); b.HasIndex("GeplanteTurnusablesungGuid"); b.HasIndex("KuendigungsfristGuid"); b.HasIndex("NetznutzungsabrechnungGuid"); b.HasIndex("VertragslaufzeitGuid"); b.HasIndex("VertragsverlaengerungGuid"); b.ToTable("Vertragskonditionen"); }); modelBuilder.Entity("BO4E.COM.Vertragsteil", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("JahresverbrauchsprognoseGuid") .HasColumnType("uuid"); b.Property("KundenwertGuid") .HasColumnType("uuid"); b.Property("Lokation") .HasColumnType("text"); b.Property("MaximaleAbnahmemengeGuid") .HasColumnType("uuid"); b.Property("MinimaleAbnahmemengeGuid") .HasColumnType("uuid"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Verbrauchsaufteilung") .HasColumnType("text"); b.Property("VertragGuid") .HasColumnType("uuid"); b.Property("VertraglichFixierteMengeGuid") .HasColumnType("uuid"); b.Property("Vertragsteilbeginn") .HasColumnType("timestamp with time zone"); b.Property("Vertragsteilende") .HasColumnType("timestamp with time zone"); b.HasKey("Guid"); b.HasIndex("JahresverbrauchsprognoseGuid"); b.HasIndex("KundenwertGuid"); b.HasIndex("MaximaleAbnahmemengeGuid"); b.HasIndex("MinimaleAbnahmemengeGuid"); b.HasIndex("VertragGuid"); b.HasIndex("VertraglichFixierteMengeGuid"); b.ToTable("Vertragsteil"); }); modelBuilder.Entity("BO4E.COM.Zaehlwerk", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Abrechnungsrelevant") .HasColumnType("boolean"); b.Property("Bezeichnung") .HasColumnType("text"); b.Property("Einheit") .HasColumnType("integer"); b.Property("Kennzahl") .HasColumnType("text"); b.Property("KonzessionsabgabeGuid") .HasColumnType("uuid"); b.Property("MarktlokationsId") .HasColumnType("text"); b.Property("Nachkommastelle") .HasColumnType("integer"); b.Property("ObisKennzahl") .HasColumnType("text"); b.Property("Richtung") .HasColumnType("integer"); b.Property("Schwachlastfaehig") .HasColumnType("integer"); b.Property("Steuerbefreit") .HasColumnType("boolean"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("Unterbrechbarkeit") .HasColumnType("integer"); b.Property("UserProperties") .HasColumnType("text"); b.Property("Verbrauchsart") .HasColumnType("integer"); b.Property>("Verwendungszwecke") .HasColumnType("text[]"); b.Property("Vorkommastelle") .HasColumnType("integer"); b.Property("Waermenutzung") .HasColumnType("integer"); b.Property("Wandlerfaktor") .HasColumnType("numeric"); b.Property("ZaehlerGuid") .HasColumnType("uuid"); b.Property("ZaehlwerkId") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("KonzessionsabgabeGuid"); b.HasIndex("MarktlokationsId"); b.HasIndex("ZaehlerGuid"); b.ToTable("Zaehlwerk"); }); modelBuilder.Entity("BO4E.COM.Zeitraum", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Dauer") .HasColumnType("numeric"); b.Property("Einheit") .HasColumnType("integer"); b.Property("Enddatum") .HasColumnType("timestamp with time zone"); b.Property("Startdatum") .HasColumnType("timestamp with time zone"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.ToTable("Zeitraum"); }); modelBuilder.Entity("BO4E.COM.Zustaendigkeit", b => { b.Property("Guid") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Abteilung") .HasColumnType("text"); b.Property("AnsprechpartnerGuid") .HasColumnType("uuid"); b.Property("Jobtitel") .HasColumnType("text"); b.Property("Themengebiet") .HasColumnType("text"); b.Property("Timestamp") .IsConcurrencyToken() .ValueGeneratedOnAddOrUpdate() .HasColumnType("timestamp without time zone") .HasDefaultValueSql("NOW()"); b.Property("UserProperties") .HasColumnType("text"); b.HasKey("Guid"); b.HasIndex("AnsprechpartnerGuid"); b.ToTable("Zustaendigkeit"); }); modelBuilder.Entity("TechnicalMasterData.Model.DomainModel.Ids.ZaehlerId", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("IdAsStringPrefix") .HasColumnType("text"); b.HasKey("Id"); b.ToTable("ZaehlerId"); }); modelBuilder.Entity("TechnicalMasterData.Model.ReadModel.Database.EF.Geraet", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("BoModelGuid") .HasColumnType("uuid"); b.Property("DatumErzeugt") .HasColumnType("timestamp with time zone"); b.Property("DatumGeaendert") .HasColumnType("timestamp with time zone"); b.Property("ExterneId") .HasColumnType("text"); b.Property("ZaehlerIdId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("BoModelGuid"); b.HasIndex("ExterneId") .IsUnique(); b.HasIndex("ZaehlerIdId"); b.ToTable("Geraet"); }); modelBuilder.Entity("TechnicalMasterData.Model.ReadModel.Database.EF.Marktnachricht", b => { b.Property("Id") .HasColumnType("text"); b.Property("DatumErzeugt") .HasColumnType("timestamp with time zone"); b.Property("DatumGeaendert") .HasColumnType("timestamp with time zone"); b.Property("ExterneId") .HasColumnType("text"); b.Property("ProzessDatum") .HasColumnType("timestamp with time zone"); b.Property("ProzessId") .HasColumnType("text"); b.Property("Typ") .HasColumnType("integer"); b.HasKey("Id"); b.ToTable("Marktnachrichten"); }); modelBuilder.Entity("BO4E.BO.Ansprechpartner", b => { b.HasOne("BO4E.COM.Adresse", "Adresse") .WithMany() .HasForeignKey("AdresseGuid"); b.HasOne("BO4E.BO.Geschaeftspartner", "Geschaeftspartner") .WithMany() .HasForeignKey("GeschaeftspartnerGuid"); }); modelBuilder.Entity("BO4E.BO.Geschaeftspartner", b => { b.HasOne("BO4E.COM.Adresse", "Partneradresse") .WithMany() .HasForeignKey("PartneradresseGuid"); }); modelBuilder.Entity("BO4E.BO.Marktlokation", b => { b.HasOne("BO4E.BO.Geschaeftspartner", "Endkunde") .WithMany() .HasForeignKey("EndkundeGuid"); b.HasOne("BO4E.COM.Geokoordinaten", "Geoadresse") .WithMany() .HasForeignKey("GeoadresseGuid"); b.HasOne("BO4E.COM.Katasteradresse", "Katasterinformation") .WithMany() .HasForeignKey("KatasterinformationGuid"); b.HasOne("BO4E.COM.Adresse", "Lokationsadresse") .WithMany() .HasForeignKey("LokationsadresseGuid"); }); modelBuilder.Entity("BO4E.BO.Messlokation", b => { b.HasOne("BO4E.COM.Geokoordinaten", "Geoadresse") .WithMany() .HasForeignKey("GeoadresseGuid"); b.HasOne("BO4E.COM.Katasteradresse", "Katasterinformation") .WithMany() .HasForeignKey("KatasterinformationGuid"); b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("Messlokationen") .HasForeignKey("MarktlokationsId"); b.HasOne("BO4E.COM.Adresse", "Messadresse") .WithMany() .HasForeignKey("MessadresseGuid"); }); modelBuilder.Entity("BO4E.BO.Vertrag", b => { b.HasOne("BO4E.BO.Geschaeftspartner", "Korrespondenzpartner") .WithMany() .HasForeignKey("KorrespondenzpartnerGuid"); b.HasOne("BO4E.COM.Vertragskonditionen", "Vertragskonditionen") .WithMany() .HasForeignKey("VertragskonditionenGuid"); b.HasOne("BO4E.BO.Geschaeftspartner", "Vertragspartner1") .WithMany() .HasForeignKey("Vertragspartner1Guid"); b.HasOne("BO4E.BO.Geschaeftspartner", "Vertragspartner2") .WithMany() .HasForeignKey("Vertragspartner2Guid"); }); modelBuilder.Entity("BO4E.BO.Zaehler", b => { b.HasOne("BO4E.BO.Messlokation", null) .WithMany("Messlokationszaehler") .HasForeignKey("MesslokationsId"); b.HasOne("BO4E.BO.Geschaeftspartner", "Zaehlerhersteller") .WithMany() .HasForeignKey("ZaehlerherstellerGuid"); }); modelBuilder.Entity("BO4E.COM.Dienstleistung", b => { b.HasOne("BO4E.BO.Messlokation", null) .WithMany("Messdienstleistung") .HasForeignKey("MesslokationsId"); }); modelBuilder.Entity("BO4E.COM.ExterneReferenz", b => { b.HasOne("BO4E.BO.Ansprechpartner", null) .WithMany("ExterneReferenzen") .HasForeignKey("AnsprechpartnerGuid"); b.HasOne("BO4E.BO.Geschaeftspartner", null) .WithMany("ExterneReferenzen") .HasForeignKey("GeschaeftspartnerGuid"); b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("ExterneReferenzen") .HasForeignKey("MarktlokationsId"); b.HasOne("BO4E.BO.Messlokation", null) .WithMany("ExterneReferenzen") .HasForeignKey("MesslokationsId"); b.HasOne("BO4E.BO.Vertrag", null) .WithMany("ExterneReferenzen") .HasForeignKey("VertragGuid"); b.HasOne("BO4E.BO.Zaehler", null) .WithMany("ExterneReferenzen") .HasForeignKey("ZaehlerGuid"); }); modelBuilder.Entity("BO4E.COM.Hardware", b => { b.HasOne("BO4E.COM.Geraeteeigenschaften", "Geraeteeigenschaften") .WithMany() .HasForeignKey("GeraeteeigenschaftenGuid"); b.HasOne("BO4E.BO.Messlokation", null) .WithMany("Geraete") .HasForeignKey("MesslokationsId"); }); modelBuilder.Entity("BO4E.COM.MarktpartnerDetails", b => { b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("Marktrollen") .HasForeignKey("MarktlokationsId"); b.HasOne("BO4E.BO.Messlokation", null) .WithMany("Marktrollen") .HasForeignKey("MesslokationsId"); }); modelBuilder.Entity("BO4E.COM.Messlokationszuordnung", b => { b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("ZugehoerigeMesslokationen") .HasForeignKey("MarktlokationsId"); }); modelBuilder.Entity("BO4E.COM.Rufnummer", b => { b.HasOne("BO4E.BO.Ansprechpartner", null) .WithMany("Rufnummern") .HasForeignKey("AnsprechpartnerGuid"); }); modelBuilder.Entity("BO4E.COM.Unterschrift", b => { b.HasOne("BO4E.BO.Vertrag", null) .WithMany("Unterzeichnervp1") .HasForeignKey("VertragGuid"); b.HasOne("BO4E.BO.Vertrag", null) .WithMany("Unterzeichnervp2") .HasForeignKey("VertragGuid1"); }); modelBuilder.Entity("BO4E.COM.Verbrauch", b => { b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("Verbrauchsmenge") .HasForeignKey("MarktlokationsId"); }); modelBuilder.Entity("BO4E.COM.Vertragskonditionen", b => { b.HasOne("BO4E.COM.Zeitraum", "Abschlagszyklus") .WithMany() .HasForeignKey("AbschlagszyklusGuid"); b.HasOne("BO4E.COM.Zeitraum", "GeplanteTurnusablesung") .WithMany() .HasForeignKey("GeplanteTurnusablesungGuid"); b.HasOne("BO4E.COM.Zeitraum", "Kuendigungsfrist") .WithMany() .HasForeignKey("KuendigungsfristGuid"); b.HasOne("BO4E.COM.Zeitraum", "Netznutzungsabrechnung") .WithMany() .HasForeignKey("NetznutzungsabrechnungGuid"); b.HasOne("BO4E.COM.Zeitraum", "Vertragslaufzeit") .WithMany() .HasForeignKey("VertragslaufzeitGuid"); b.HasOne("BO4E.COM.Zeitraum", "Vertragsverlaengerung") .WithMany() .HasForeignKey("VertragsverlaengerungGuid"); }); modelBuilder.Entity("BO4E.COM.Vertragsteil", b => { b.HasOne("BO4E.COM.Menge", "Jahresverbrauchsprognose") .WithMany() .HasForeignKey("JahresverbrauchsprognoseGuid"); b.HasOne("BO4E.COM.Menge", "Kundenwert") .WithMany() .HasForeignKey("KundenwertGuid"); b.HasOne("BO4E.COM.Menge", "MaximaleAbnahmemenge") .WithMany() .HasForeignKey("MaximaleAbnahmemengeGuid"); b.HasOne("BO4E.COM.Menge", "MinimaleAbnahmemenge") .WithMany() .HasForeignKey("MinimaleAbnahmemengeGuid"); b.HasOne("BO4E.BO.Vertrag", null) .WithMany("Vertragsteile") .HasForeignKey("VertragGuid"); b.HasOne("BO4E.COM.Menge", "VertraglichFixierteMenge") .WithMany() .HasForeignKey("VertraglichFixierteMengeGuid"); }); modelBuilder.Entity("BO4E.COM.Zaehlwerk", b => { b.HasOne("BO4E.COM.Konzessionsabgabe", "Konzessionsabgabe") .WithMany() .HasForeignKey("KonzessionsabgabeGuid"); b.HasOne("BO4E.BO.Marktlokation", null) .WithMany("Zaehlwerke") .HasForeignKey("MarktlokationsId"); b.HasOne("BO4E.BO.Zaehler", null) .WithMany("Zaehlwerke") .HasForeignKey("ZaehlerGuid"); }); modelBuilder.Entity("BO4E.COM.Zustaendigkeit", b => { b.HasOne("BO4E.BO.Ansprechpartner", null) .WithMany("Zustaendigkeit") .HasForeignKey("AnsprechpartnerGuid"); }); modelBuilder.Entity("TechnicalMasterData.Model.ReadModel.Database.EF.Geraet", b => { b.HasOne("BO4E.COM.Hardware", "BoModel") .WithMany() .HasForeignKey("BoModelGuid"); b.HasOne("TechnicalMasterData.Model.DomainModel.Ids.ZaehlerId", "ZaehlerId") .WithMany() .HasForeignKey("ZaehlerIdId"); });