184 lines
5.9 KiB
C#
184 lines
5.9 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Bunny.Common.Context;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Bunny.Common.Migrations
|
|
{
|
|
[DbContext(typeof(EfCoreContext))]
|
|
partial class EfCoreContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.8")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Bunny.Dao.Entity.System.Blog", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CreateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UpdateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Url")
|
|
.IsRequired()
|
|
.HasColumnType("varchar(600)")
|
|
.HasColumnName("BlogUrl");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Blog");
|
|
});
|
|
|
|
modelBuilder.Entity("Bunny.Dao.Entity.System.Post", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("BlogId")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("Content")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CreateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Title")
|
|
.HasMaxLength(600)
|
|
.HasColumnType("nvarchar(600)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UpdateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BlogId");
|
|
|
|
b.ToTable("Posts");
|
|
});
|
|
|
|
modelBuilder.Entity("Bunny.Dao.Entity.System.Product", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CreateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("CustomerId")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("PackageType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UpdateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Products");
|
|
});
|
|
|
|
modelBuilder.Entity("Bunny.Dao.Entity.System.User", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CompanyCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CreateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("DeptCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Password")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("QrCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UpdateUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("Bunny.Dao.Entity.System.Post", b =>
|
|
{
|
|
b.HasOne("Bunny.Dao.Entity.System.Blog", "Blog")
|
|
.WithMany()
|
|
.HasForeignKey("BlogId");
|
|
|
|
b.Navigation("Blog");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|