FileSqlServerSync/Server/RemoteServer/Migrations/SqliteDbContextModelSnapshot.cs
zhaoyouya 46315ba760 chore: 添加sqlite 数据库,remote server 增加一些接口
添加了一些数据模型,添加了一些简单的单元测试
2024-10-12 21:57:45 +08:00

115 lines
3.6 KiB
C#

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