50d65eebaa
- renaming classi gestione DbModels in - spostamento anagrafica flussi da auth a generale
180 lines
6.0 KiB
C#
180 lines
6.0 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using MP.FileData;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace MP.FileData.Migrations
|
|
{
|
|
[DbContext(typeof(MoonPro_ProgContext))]
|
|
partial class MoonPro_ProgContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.UseCollation("SQL_Latin1_General_CP1_CI_AS")
|
|
.HasAnnotation("ProductVersion", "6.0.33")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
|
|
|
|
modelBuilder.Entity("FileModelTagModel", b =>
|
|
{
|
|
b.Property<int>("FilesFileId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TagsTagId")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.HasKey("FilesFileId", "TagsTagId");
|
|
|
|
b.HasIndex("TagsTagId");
|
|
|
|
b.ToTable("FileModelTagModel");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.FileData.DbModels.ArchMaccModel", b =>
|
|
{
|
|
b.Property<string>("IdxMacchina")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("BasePath")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Descrizione")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ImgUrl")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Nome")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RuleName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("ShowOrder")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("IdxMacchina");
|
|
|
|
b.ToTable("Macchine");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
IdxMacchina = "0",
|
|
BasePath = "",
|
|
Descrizione = "--- Tutte ---",
|
|
ImgUrl = "",
|
|
Nome = "--- Tutte ---",
|
|
Note = "",
|
|
RuleName = "0",
|
|
ShowOrder = 0
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("MP.FileData.DbModels.FileModel", b =>
|
|
{
|
|
b.Property<int>("FileId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FileId"), 1L, 1);
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<int>("DiskStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<byte[]>("FileContent")
|
|
.HasColumnType("varbinary(max)");
|
|
|
|
b.Property<string>("IdxMacchina")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("LastCheck")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("LastMod")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("MD5")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("MimeType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Path")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Rev")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Size")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("UserAppr")
|
|
.IsRequired()
|
|
.ValueGeneratedOnAdd()
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)")
|
|
.HasDefaultValueSql("('')");
|
|
|
|
b.HasKey("FileId");
|
|
|
|
b.HasIndex("IdxMacchina", "Active", "DiskStatus");
|
|
|
|
b.ToTable("Files");
|
|
});
|
|
|
|
modelBuilder.Entity("MP.FileData.DbModels.TagModel", b =>
|
|
{
|
|
b.Property<string>("TagId")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.HasKey("TagId");
|
|
|
|
b.ToTable("Tags");
|
|
});
|
|
|
|
modelBuilder.Entity("FileModelTagModel", b =>
|
|
{
|
|
b.HasOne("MP.FileData.DbModels.FileModel", null)
|
|
.WithMany()
|
|
.HasForeignKey("FilesFileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("MP.FileData.DbModels.TagModel", null)
|
|
.WithMany()
|
|
.HasForeignKey("TagsTagId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("MP.FileData.DbModels.FileModel", b =>
|
|
{
|
|
b.HasOne("MP.FileData.DbModels.ArchMaccModel", "Macchina")
|
|
.WithMany()
|
|
.HasForeignKey("IdxMacchina");
|
|
|
|
b.Navigation("Macchina");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|