//
using System;
using Bunny.Common.EFCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Bunny.Common.Migrations
{
[DbContext(typeof(EfCoreContext))]
[Migration("20240809011221_InitialCreate")]
partial class InitialCreate
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "8.0.7");
modelBuilder.Entity("Bunny.Dao.Models.System.Blog", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("CreateTime")
.HasColumnType("TEXT");
b.Property("CreateUserId")
.HasColumnType("INTEGER");
b.Property("UpdateTime")
.HasColumnType("TEXT");
b.Property("UpdateUserId")
.HasColumnType("INTEGER");
b.Property("Url")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Blogs");
});
modelBuilder.Entity("Bunny.Dao.Models.System.Post", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("BlogId")
.HasColumnType("INTEGER");
b.Property("BlogId1")
.HasColumnType("TEXT");
b.Property("Content")
.HasColumnType("TEXT");
b.Property("CreateTime")
.HasColumnType("TEXT");
b.Property("CreateUserId")
.HasColumnType("INTEGER");
b.Property("PostId")
.HasColumnType("INTEGER");
b.Property("Title")
.HasColumnType("TEXT");
b.Property("UpdateTime")
.HasColumnType("TEXT");
b.Property("UpdateUserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("BlogId1");
b.ToTable("Posts");
});
modelBuilder.Entity("Bunny.Dao.Models.System.Product", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("CreateTime")
.HasColumnType("TEXT");
b.Property("CreateUserId")
.HasColumnType("INTEGER");
b.Property("CustomerId")
.HasColumnType("TEXT");
b.Property("CustomerName")
.HasColumnType("TEXT");
b.Property("PackageType")
.HasColumnType("TEXT");
b.Property("UpdateTime")
.HasColumnType("TEXT");
b.Property("UpdateUserId")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.ToTable("Products");
});
modelBuilder.Entity("Bunny.Dao.Models.System.User", b =>
{
b.Property("Id")
.HasColumnType("TEXT");
b.Property("CompanyCode")
.HasColumnType("TEXT");
b.Property("CreateTime")
.HasColumnType("TEXT");
b.Property("CreateUserId")
.HasColumnType("INTEGER");
b.Property("DeptCode")
.HasColumnType("TEXT");
b.Property("Email")
.HasColumnType("TEXT");
b.Property("Password")
.HasColumnType("TEXT");
b.Property("Phone")
.HasColumnType("TEXT");
b.Property("QrCode")
.HasColumnType("TEXT");
b.Property("UpdateTime")
.HasColumnType("TEXT");
b.Property("UpdateUserId")
.HasColumnType("INTEGER");
b.Property("UserName")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Users");
});
modelBuilder.Entity("Bunny.Dao.Models.System.Post", b =>
{
b.HasOne("Bunny.Dao.Models.System.Blog", "Blog")
.WithMany()
.HasForeignKey("BlogId1");
b.Navigation("Blog");
});
#pragma warning restore 612, 618
}
}
}