mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add people by company entity.
This commit is contained in:
@@ -650,7 +650,6 @@ namespace Cicm.Database.Migrations
|
||||
b.HasIndex("Type");
|
||||
|
||||
b.ToTable("ISO_639-3");
|
||||
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.License", b =>
|
||||
@@ -4601,6 +4600,38 @@ namespace Cicm.Database.Migrations
|
||||
b.ToTable("OwnedMachinePhotos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.PeopleByCompany", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<int>("CompanyId");
|
||||
|
||||
b.Property<DateTime?>("End");
|
||||
|
||||
b.Property<bool>("Ongoing");
|
||||
|
||||
b.Property<int>("PersonId");
|
||||
|
||||
b.Property<string>("Position");
|
||||
|
||||
b.Property<DateTime?>("Start");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CompanyId");
|
||||
|
||||
b.HasIndex("End");
|
||||
|
||||
b.HasIndex("PersonId");
|
||||
|
||||
b.HasIndex("Position");
|
||||
|
||||
b.HasIndex("Start");
|
||||
|
||||
b.ToTable("PeopleByCompany");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.Person", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -5585,6 +5616,19 @@ namespace Cicm.Database.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.PeopleByCompany", b =>
|
||||
{
|
||||
b.HasOne("Cicm.Database.Models.Company", "Company")
|
||||
.WithMany("People")
|
||||
.HasForeignKey("CompanyId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
b.HasOne("Cicm.Database.Models.Person", "Person")
|
||||
.WithMany("Companies")
|
||||
.HasForeignKey("PersonId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Cicm.Database.Models.Person", b =>
|
||||
{
|
||||
b.HasOne("Cicm.Database.Models.Iso31661Numeric", "CountryOfBirth")
|
||||
|
||||
Reference in New Issue
Block a user