Huge work
This commit is contained in:
@@ -48,6 +48,9 @@ namespace KTUSAPS.Data.Migrations
|
||||
.HasMaxLength(320)
|
||||
.HasColumnType("varchar(320)");
|
||||
|
||||
b.Property<int>("IssueTypeId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("Publishable")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
@@ -60,9 +63,28 @@ namespace KTUSAPS.Data.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IssueTypeId");
|
||||
|
||||
b.ToTable("Issues");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.IssueType", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<string>("NameEn")
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("IssueTypes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.PublishedFeedback", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -167,6 +189,17 @@ namespace KTUSAPS.Data.Migrations
|
||||
b.ToTable("Votes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.Issue", b =>
|
||||
{
|
||||
b.HasOne("KTUSAPS.Data.Model.IssueType", "IssueType")
|
||||
.WithMany("Issues")
|
||||
.HasForeignKey("IssueTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("IssueType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.PublishedFeedback", b =>
|
||||
{
|
||||
b.HasOne("KTUSAPS.Data.Model.Issue", "Issue")
|
||||
@@ -209,6 +242,11 @@ namespace KTUSAPS.Data.Migrations
|
||||
b.Navigation("Problem");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.IssueType", b =>
|
||||
{
|
||||
b.Navigation("Issues");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KTUSAPS.Data.Model.PublishedProblem", b =>
|
||||
{
|
||||
b.Navigation("Votes");
|
||||
|
Reference in New Issue
Block a user