168 lines
5.6 KiB
C#
168 lines
5.6 KiB
C#
|
|
// <auto-generated />
|
|||
|
|
using System;
|
|||
|
|
using EngineeringSync.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace EngineeringSync.Infrastructure.Migrations
|
|||
|
|
{
|
|||
|
|
[DbContext(typeof(AppDbContext))]
|
|||
|
|
[Migration("20260326161840_AddBackupSettingsToProjectConfig")]
|
|||
|
|
partial class AddBackupSettingsToProjectConfig
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
|
{
|
|||
|
|
#pragma warning disable 612, 618
|
|||
|
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.5");
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.FileRevision", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileHash")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("LastModified")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("ProjectId")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("RelativePath")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<long>("Size")
|
|||
|
|
.HasColumnType("INTEGER");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("ProjectId", "RelativePath")
|
|||
|
|
.IsUnique();
|
|||
|
|
|
|||
|
|
b.ToTable("FileRevisions");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.PendingChange", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<int>("ChangeType")
|
|||
|
|
.HasColumnType("INTEGER");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreatedAt")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("OldRelativePath")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<Guid>("ProjectId")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("RelativePath")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<int>("Status")
|
|||
|
|
.HasColumnType("INTEGER");
|
|||
|
|
|
|||
|
|
b.Property<DateTime?>("SyncedAt")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.HasIndex("ProjectId");
|
|||
|
|
|
|||
|
|
b.ToTable("PendingChanges");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.ProjectConfig", b =>
|
|||
|
|
{
|
|||
|
|
b.Property<Guid>("Id")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<bool>("BackupEnabled")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("INTEGER")
|
|||
|
|
.HasDefaultValue(true);
|
|||
|
|
|
|||
|
|
b.Property<string>("BackupPath")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<DateTime>("CreatedAt")
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("EngineeringPath")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("FileExtensions")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<bool>("IsActive")
|
|||
|
|
.HasColumnType("INTEGER");
|
|||
|
|
|
|||
|
|
b.Property<int>("MaxBackupsPerFile")
|
|||
|
|
.ValueGeneratedOnAdd()
|
|||
|
|
.HasColumnType("INTEGER")
|
|||
|
|
.HasDefaultValue(0);
|
|||
|
|
|
|||
|
|
b.Property<string>("Name")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasMaxLength(200)
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.Property<string>("SimulationPath")
|
|||
|
|
.IsRequired()
|
|||
|
|
.HasColumnType("TEXT");
|
|||
|
|
|
|||
|
|
b.HasKey("Id");
|
|||
|
|
|
|||
|
|
b.ToTable("Projects");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.FileRevision", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("EngineeringSync.Domain.Entities.ProjectConfig", "Project")
|
|||
|
|
.WithMany("FileRevisions")
|
|||
|
|
.HasForeignKey("ProjectId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.Navigation("Project");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.PendingChange", b =>
|
|||
|
|
{
|
|||
|
|
b.HasOne("EngineeringSync.Domain.Entities.ProjectConfig", "Project")
|
|||
|
|
.WithMany("PendingChanges")
|
|||
|
|
.HasForeignKey("ProjectId")
|
|||
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
|
.IsRequired();
|
|||
|
|
|
|||
|
|
b.Navigation("Project");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
modelBuilder.Entity("EngineeringSync.Domain.Entities.ProjectConfig", b =>
|
|||
|
|
{
|
|||
|
|
b.Navigation("FileRevisions");
|
|||
|
|
|
|||
|
|
b.Navigation("PendingChanges");
|
|||
|
|
});
|
|||
|
|
#pragma warning restore 612, 618
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|