mirror of
https://github.com/eliasstepanik/SimpleFunctions.git
synced 2026-01-12 14:18:31 +00:00
86 lines
2.6 KiB
C#
86 lines
2.6 KiB
C#
// <auto-generated />
|
|
using Functions.Data.DB;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Functions.Data.DB.Migrations
|
|
{
|
|
[DbContext(typeof(FunctionsContext))]
|
|
[Migration("20230528184618_Function2")]
|
|
partial class Function2
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.5")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
|
|
|
modelBuilder.Entity("Functions.Data.Function", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ImageTag")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Functions");
|
|
});
|
|
|
|
modelBuilder.Entity("Functions.Data.Instance", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FunctionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("InstanceId")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("FunctionId");
|
|
|
|
b.ToTable("Instances");
|
|
});
|
|
|
|
modelBuilder.Entity("Functions.Data.Instance", b =>
|
|
{
|
|
b.HasOne("Functions.Data.Function", "Function")
|
|
.WithMany("Instances")
|
|
.HasForeignKey("FunctionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Function");
|
|
});
|
|
|
|
modelBuilder.Entity("Functions.Data.Function", b =>
|
|
{
|
|
b.Navigation("Instances");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|