添加货币表
This commit is contained in:
parent
b819883786
commit
eb7699b435
|
|
@ -93,6 +93,11 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual DbSet<T_User_Chat> T_User_Chat { get; set; }
|
public virtual DbSet<T_User_Chat> T_User_Chat { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 用户货币表
|
||||||
|
/// </summary>
|
||||||
|
public virtual DbSet<T_User_Currency> T_User_Currency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户信息表
|
/// 用户信息表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -322,12 +327,11 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
{
|
{
|
||||||
entity.HasKey(e => e.Id).HasName("PK__T_Image___3214EC072BCFE4E5");
|
entity.HasKey(e => e.Id).HasName("PK__T_Image___3214EC072BCFE4E5");
|
||||||
|
|
||||||
entity.ToTable(tb =>
|
entity.ToTable(tb => tb.HasComment("图片表"));
|
||||||
{
|
|
||||||
tb.HasComment("图片表");
|
|
||||||
tb.HasTrigger("trg_UpdateImageId");
|
|
||||||
});
|
|
||||||
|
|
||||||
|
entity.Property(e => e.Bucket)
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasComment("存储桶");
|
||||||
entity.Property(e => e.CreateAt)
|
entity.Property(e => e.CreateAt)
|
||||||
.HasComment("创建时间")
|
.HasComment("创建时间")
|
||||||
.HasColumnType("datetime");
|
.HasColumnType("datetime");
|
||||||
|
|
@ -335,6 +339,12 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
entity.Property(e => e.Name)
|
entity.Property(e => e.Name)
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(50)
|
||||||
.HasComment("图片名称");
|
.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.TenantId).HasComment("租户");
|
||||||
entity.Property(e => e.UpdateAt)
|
entity.Property(e => e.UpdateAt)
|
||||||
.HasComment("修改时间")
|
.HasComment("修改时间")
|
||||||
|
|
@ -396,6 +406,7 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
entity.Property(e => e.Email)
|
entity.Property(e => e.Email)
|
||||||
.HasMaxLength(255)
|
.HasMaxLength(255)
|
||||||
.HasComment("绑定的邮箱");
|
.HasComment("绑定的邮箱");
|
||||||
|
entity.Property(e => e.GoldCoinCount).HasComment("金币数量");
|
||||||
entity.Property(e => e.Ip)
|
entity.Property(e => e.Ip)
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
.HasComment("Ip地址");
|
.HasComment("Ip地址");
|
||||||
|
|
@ -455,6 +466,32 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<T_User_Currency>(entity =>
|
||||||
|
{
|
||||||
|
entity.HasKey(e => e.Id).HasName("PK__T_User_C__3214EC0728E86D78");
|
||||||
|
|
||||||
|
entity.ToTable(tb => tb.HasComment("用户货币表"));
|
||||||
|
|
||||||
|
entity.Property(e => e.CreateAt)
|
||||||
|
.HasComment("创建时间")
|
||||||
|
.HasColumnType("datetime");
|
||||||
|
entity.Property(e => e.CurrencyMoney)
|
||||||
|
.HasComment("货币余额")
|
||||||
|
.HasColumnType("decimal(10, 2)");
|
||||||
|
entity.Property(e => e.CurrencyName)
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.HasComment("货币名称");
|
||||||
|
entity.Property(e => e.CurrencyType).HasComment("货币类型");
|
||||||
|
entity.Property(e => e.UpdateAt)
|
||||||
|
.HasComment("修改时间")
|
||||||
|
.HasColumnType("datetime");
|
||||||
|
//添加全局筛选器
|
||||||
|
if (this.TenantInfo != null)
|
||||||
|
{
|
||||||
|
entity.HasQueryFilter(it => it.TenantId == this.TenantInfo.TenantId);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity<T_User_Data>(entity =>
|
modelBuilder.Entity<T_User_Data>(entity =>
|
||||||
{
|
{
|
||||||
entity.HasKey(e => new { e.Id, e.UserId }).HasName("PK__T_User_D__E36C60C3D959FD89");
|
entity.HasKey(e => new { e.Id, e.UserId }).HasName("PK__T_User_D__E36C60C3D959FD89");
|
||||||
|
|
|
||||||
|
|
@ -34,4 +34,19 @@ public partial class T_Image_Config: MultiTenantEntity
|
||||||
/// 修改时间
|
/// 修改时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime UpdateAt { get; set; }
|
public DateTime UpdateAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// oss存放路径
|
||||||
|
/// </summary>
|
||||||
|
public string? OssPath { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 存储桶
|
||||||
|
/// </summary>
|
||||||
|
public string? Bucket { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 地域
|
||||||
|
/// </summary>
|
||||||
|
public string? Region { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,4 +67,9 @@ public partial class T_User: MultiTenantEntity
|
||||||
/// Ip地址
|
/// Ip地址
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string? Ip { get; set; }
|
public string? Ip { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 金币数量
|
||||||
|
/// </summary>
|
||||||
|
public int? GoldCoinCount { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace HuanMeng.MiaoYu.Model.DbSqlServer.Db_MiaoYu;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 用户货币表
|
||||||
|
/// </summary>
|
||||||
|
public partial class T_User_Currency: MultiTenantEntity
|
||||||
|
{
|
||||||
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货币类型
|
||||||
|
/// </summary>
|
||||||
|
public int CurrencyType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货币名称
|
||||||
|
/// </summary>
|
||||||
|
public string CurrencyName { get; set; } = null!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 货币余额
|
||||||
|
/// </summary>
|
||||||
|
public decimal CurrencyMoney { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime UpdateAt { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 创建时间
|
||||||
|
/// </summary>
|
||||||
|
public DateTime CreateAt { get; set; }
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user