using MiaoYu.Repository.ChatAI.Admin.Entities; #nullable disable namespace MiaoYu.Repository.ChatAI.Admin.Migrations { [DbContext(typeof(ChatAdminDbContext))] public class ChatAdminDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.2") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); modelBuilder.Entity(entity => { entity.HasKey(e => e.Id).HasName("PK__T_Image___3214EC072BCFE4E5"); entity.ToTable(tb => tb.HasComment("图片表")); entity.Property(e => e.Bucket) .HasMaxLength(100) .HasComment("存储桶"); entity.Property(e => e.CreateAt) .HasComment("创建时间") .HasColumnType("datetime"); entity.Property(e => e.ImageId).HasComment("图片Id"); entity.Property(e => e.Name) .HasMaxLength(50) .HasComment("图片名称"); entity.Property(e => e.OssPath) .HasMaxLength(200) .HasComment("oss存放路径"); entity.Property(e => e.Region) .HasMaxLength(100) .HasComment("地域"); entity.Property(e => e.TenantId).HasComment("租户"); entity.Property(e => e.UpdateAt) .HasComment("修改时间") .HasColumnType("datetime"); entity.Property(e => e.Url) .HasMaxLength(500) .HasComment("图片地址"); //添加全局筛选器 //if (this.TenantInfo != null) //{ // entity.HasQueryFilter(it => it.TenantId == this.TenantInfo.TenantId); //} }); #pragma warning restore 612, 618 } } }