//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using RemoteServer.Models;
#nullable disable
namespace RemoteServer.Migrations
{
[DbContext(typeof(SqliteDbContext))]
[Migration("20240708101413_InitialCreate")]
partial class InitialCreate
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.6");
modelBuilder.Entity("RemoteServer.SyncGitCommit", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("CommitId")
.IsRequired()
.HasColumnType("TEXT");
b.Property("CommitMessage")
.IsRequired()
.HasColumnType("TEXT");
b.Property("CommitTime")
.HasColumnType("TEXT");
b.Property("CommitUserName")
.IsRequired()
.HasColumnType("TEXT");
b.Property("HeadId")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("SyncGitCommits");
});
modelBuilder.Entity("RemoteServer.SyncLogFile", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ClientRootPath")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("HeadId")
.HasColumnType("TEXT");
b.Property("RelativePath")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.Property("ServerRootPath")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("SyncLogFiles");
});
modelBuilder.Entity("RemoteServer.SyncLogHead", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT");
b.Property("ClientID")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("TEXT");
b.Property("ClientName")
.HasMaxLength(50)
.HasColumnType("TEXT");
b.Property("Message")
.HasColumnType("TEXT");
b.Property("Status")
.HasColumnType("INTEGER");
b.Property("SyncTime")
.HasColumnType("TEXT");
b.Property("VersionsFromTag")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("SyncLogHeads");
});
#pragma warning restore 612, 618
}
}
}