Browse Source

IsActive修改

bjmzak
wxd 3 years ago
parent
commit
7b0a47026e
  1. 4
      src/Shentun.Peis.Domain/Models/Asbitem.cs
  2. 4
      src/Shentun.Peis.Domain/Models/Department.cs
  3. 4
      src/Shentun.Peis.Domain/Models/Item.cs
  4. 4
      src/Shentun.Peis.Domain/Models/MedicalPackage.cs
  5. 4
      src/Shentun.Peis.Domain/Models/Room.cs
  6. 4
      src/Shentun.Peis.Domain/Models/User.cs
  7. 2
      src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
  8. 10543
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs
  9. 75
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.cs
  10. 36
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

4
src/Shentun.Peis.Domain/Models/Asbitem.cs

@ -127,9 +127,9 @@ namespace Shentun.Peis.Models
/// <summary> /// <summary>
/// 是启用 /// 是启用
/// </summary> /// </summary>
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
[Column("simple_code")] [Column("simple_code")]
[StringLength(30)] [StringLength(30)]
public string SimpleCode { get; set; } = null!; public string SimpleCode { get; set; } = null!;

4
src/Shentun.Peis.Domain/Models/Department.cs

@ -40,9 +40,9 @@ namespace Shentun.Peis.Models
[Column("code_prefix")] [Column("code_prefix")]
[StringLength(2)] [StringLength(2)]
public string? CodePrefix { get; set; } public string? CodePrefix { get; set; }
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
[Column("simple_code")] [Column("simple_code")]
[StringLength(20)] [StringLength(20)]
public string SimpleCode { get; set; } = null!; public string SimpleCode { get; set; } = null!;

4
src/Shentun.Peis.Domain/Models/Item.cs

@ -78,9 +78,9 @@ namespace Shentun.Peis.Models
[Column("input_check")] [Column("input_check")]
[StringLength(100)] [StringLength(100)]
public string? InputCheck { get; set; } public string? InputCheck { get; set; }
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
[Column("simple_code")] [Column("simple_code")]
[StringLength(30)] [StringLength(30)]
public string SimpleCode { get; set; } = null!; public string SimpleCode { get; set; } = null!;

4
src/Shentun.Peis.Domain/Models/MedicalPackage.cs

@ -42,9 +42,9 @@ namespace Shentun.Peis.Models
/// <summary> /// <summary>
/// 启用标志 /// 启用标志
/// </summary> /// </summary>
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
/// <summary> /// <summary>
/// 备注 /// 备注
/// </summary> /// </summary>

4
src/Shentun.Peis.Domain/Models/Room.cs

@ -35,9 +35,9 @@ namespace Shentun.Peis.Models
[Column("room_type_flag")] [Column("room_type_flag")]
[MaxLength(1)] [MaxLength(1)]
public char RoomTypeFlag { get; set; } public char RoomTypeFlag { get; set; }
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
[Column("simple_code")] [Column("simple_code")]
[StringLength(20)] [StringLength(20)]
public string SimpleCode { get; set; } = null!; public string SimpleCode { get; set; } = null!;

4
src/Shentun.Peis.Domain/Models/User.cs

@ -56,9 +56,9 @@ namespace Shentun.Peis.Models
[Column("simple_code")] [Column("simple_code")]
[StringLength(20)] [StringLength(20)]
public string SimpleCode { get; set; } = null!; public string SimpleCode { get; set; } = null!;
[Column("is_valid")]
[Column("is_active")]
[MaxLength(1)] [MaxLength(1)]
public char IsValid { get; set; }
public char IsActive { get; set; }
[Column("lock_screen_time_interval")] [Column("lock_screen_time_interval")]
public int LockScreenTimeInterval { get; set; } public int LockScreenTimeInterval { get; set; }
[Column("photo")] [Column("photo")]

2
src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs

@ -1898,7 +1898,7 @@ public class PeisDbContext :
.HasDefaultValueSql("'A'::bpchar") .HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别"); .HasComment("适用性别");
entity.Property(e => e.IsValid).HasComment("启用标志");
entity.Property(e => e.IsActive).HasComment("启用标志");
//entity.Property(e => e.LastModificationTime).HasComment("最后修改日期"); //entity.Property(e => e.LastModificationTime).HasComment("最后修改日期");

10543
src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.Designer.cs
File diff suppressed because it is too large
View File

75
src/Shentun.Peis.EntityFrameworkCore/Migrations/20230506035600_i2.cs

@ -0,0 +1,75 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class i2 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "is_valid",
table: "users",
newName: "is_active");
migrationBuilder.RenameColumn(
name: "is_valid",
table: "room",
newName: "is_active");
migrationBuilder.RenameColumn(
name: "is_valid",
table: "medical_package",
newName: "is_active");
migrationBuilder.RenameColumn(
name: "is_valid",
table: "item",
newName: "is_active");
migrationBuilder.RenameColumn(
name: "is_valid",
table: "department",
newName: "is_active");
migrationBuilder.RenameColumn(
name: "is_valid",
table: "asbitem",
newName: "is_active");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "is_active",
table: "users",
newName: "is_valid");
migrationBuilder.RenameColumn(
name: "is_active",
table: "room",
newName: "is_valid");
migrationBuilder.RenameColumn(
name: "is_active",
table: "medical_package",
newName: "is_valid");
migrationBuilder.RenameColumn(
name: "is_active",
table: "item",
newName: "is_valid");
migrationBuilder.RenameColumn(
name: "is_active",
table: "department",
newName: "is_valid");
migrationBuilder.RenameColumn(
name: "is_active",
table: "asbitem",
newName: "is_valid");
}
}
}

36
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -251,6 +251,11 @@ namespace Shentun.Peis.Migrations
.HasColumnName("invoice_item_type_id") .HasColumnName("invoice_item_type_id")
.IsFixedLength(); .IsFixedLength();
b.Property<char>("IsActive")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active");
b.Property<char>("IsBeforeEat") b.Property<char>("IsBeforeEat")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
@ -281,11 +286,6 @@ namespace Shentun.Peis.Migrations
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_picture_rotate"); .HasColumnName("is_picture_rotate");
b.Property<char>("IsValid")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_valid");
b.Property<Guid>("ItemTypeId") b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("item_type_id") .HasColumnName("item_type_id")
@ -2048,10 +2048,10 @@ namespace Shentun.Peis.Migrations
.HasColumnName("display_order") .HasColumnName("display_order")
.HasDefaultValueSql("1"); .HasDefaultValueSql("1");
b.Property<char>("IsValid")
b.Property<char>("IsActive")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_valid");
.HasColumnName("is_active");
b.Property<DateTime?>("LastModificationTime") b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")
@ -3091,6 +3091,11 @@ namespace Shentun.Peis.Migrations
.HasColumnType("character varying(100)") .HasColumnType("character varying(100)")
.HasColumnName("input_check"); .HasColumnName("input_check");
b.Property<char>("IsActive")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_active");
b.Property<char>("IsCalculationItem") b.Property<char>("IsCalculationItem")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
@ -3116,11 +3121,6 @@ namespace Shentun.Peis.Migrations
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_produce_summary"); .HasColumnName("is_produce_summary");
b.Property<char>("IsValid")
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_valid");
b.Property<Guid>("ItemTypeId") b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("item_type_id") .HasColumnName("item_type_id")
@ -3823,10 +3823,10 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'A'::bpchar") .HasDefaultValueSql("'A'::bpchar")
.HasComment("适用性别"); .HasComment("适用性别");
b.Property<char>("IsValid")
b.Property<char>("IsActive")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_valid")
.HasColumnName("is_active")
.HasComment("启用标志"); .HasComment("启用标志");
b.Property<DateTime?>("LastModificationTime") b.Property<DateTime?>("LastModificationTime")
@ -5910,10 +5910,10 @@ namespace Shentun.Peis.Migrations
.HasColumnName("for_sex_id") .HasColumnName("for_sex_id")
.HasDefaultValueSql("'A'::bpchar"); .HasDefaultValueSql("'A'::bpchar");
b.Property<char>("IsValid")
b.Property<char>("IsActive")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_valid");
.HasColumnName("is_active");
b.Property<Guid>("ItemTypeId") b.Property<Guid>("ItemTypeId")
.HasColumnType("uuid") .HasColumnType("uuid")
@ -7236,10 +7236,10 @@ namespace Shentun.Peis.Migrations
.HasColumnType("character varying(50)") .HasColumnType("character varying(50)")
.HasColumnName("email"); .HasColumnName("email");
b.Property<char>("IsValid")
b.Property<char>("IsActive")
.HasMaxLength(1) .HasMaxLength(1)
.HasColumnType("character(1)") .HasColumnType("character(1)")
.HasColumnName("is_valid");
.HasColumnName("is_active");
b.Property<DateTime?>("LastModificationTime") b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")

Loading…
Cancel
Save