Browse Source

表修改

master
wxd 1 year ago
parent
commit
d2ae82c848
  1. 4
      src/Shentun.Peis.Domain/PhoneFollowUps/PhoneFollowUp.cs
  2. 4
      src/Shentun.Peis.Domain/SmsSends/SmsSend.cs
  3. 2
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs
  4. 2
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs
  5. 15637
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240919062010_update_follow_up_follow_up_date_2.Designer.cs
  6. 48
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240919062010_update_follow_up_follow_up_date_2.cs
  7. 16
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

4
src/Shentun.Peis.Domain/PhoneFollowUps/PhoneFollowUp.cs

@ -47,8 +47,8 @@ namespace Shentun.Peis.Models
/// <summary> /// <summary>
/// 随访日期 /// 随访日期
/// </summary> /// </summary>
[Column("follow_up_date")]
public DateTime FollowUpDate { get; set; }
[Column("plan_follow_date")]
public DateTime? PlanFollowDate { get; set; }
/// <summary> /// <summary>
/// 是否完成 /// 是否完成

4
src/Shentun.Peis.Domain/SmsSends/SmsSend.cs

@ -66,8 +66,8 @@ namespace Shentun.Peis.Models
/// <summary> /// <summary>
/// 短信推送时间 /// 短信推送时间
/// </summary> /// </summary>
[Column("send_date")]
public DateTime? SendDate { get; set; }
[Column("plan_send_date")]
public DateTime? PlanSendDate { get; set; }
[Column("concurrency_stamp")] [Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; } public string ConcurrencyStamp { get; set; }

2
src/Shentun.Peis.EntityFrameworkCore/DbMapping/PhoneFollows/PhoneFollowDbMapping.cs

@ -23,7 +23,7 @@ namespace Shentun.Peis.DbMapping
entity.Property(e => e.Id).ValueGeneratedNever().IsRequired(); entity.Property(e => e.Id).ValueGeneratedNever().IsRequired();
entity.Property(e => e.FollowUpDate).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
entity.Property(e => e.PlanFollowDate).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
//entity.Property(e => e.LastModificationTime).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)"); //entity.Property(e => e.LastModificationTime).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");

2
src/Shentun.Peis.EntityFrameworkCore/DbMapping/SmsSends/SmsSendDbMapping.cs

@ -22,7 +22,7 @@ namespace Shentun.Peis.DbMapping
entity.Property(t => t.MobileTelephone).HasComment("手机号").IsRequired(); entity.Property(t => t.MobileTelephone).HasComment("手机号").IsRequired();
entity.Property(t => t.Content).HasComment("短信内容").IsRequired(); entity.Property(t => t.Content).HasComment("短信内容").IsRequired();
entity.Property(t => t.IsComplete).HasComment("是否完成").IsRequired().HasDefaultValueSql("'N'"); entity.Property(t => t.IsComplete).HasComment("是否完成").IsRequired().HasDefaultValueSql("'N'");
entity.Property(e => e.SendDate).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
entity.Property(e => e.PlanSendDate).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
entity.Property(e => e.Id).ValueGeneratedNever(); entity.Property(e => e.Id).ValueGeneratedNever();
entity.Property(e => e.SmsTypeId).IsFixedLength(); entity.Property(e => e.SmsTypeId).IsFixedLength();

15637
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240919062010_update_follow_up_follow_up_date_2.Designer.cs
File diff suppressed because it is too large
View File

48
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240919062010_update_follow_up_follow_up_date_2.cs

@ -0,0 +1,48 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class update_follow_up_follow_up_date_2 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "follow_up_date",
table: "phone_follow_up");
migrationBuilder.RenameColumn(
name: "send_date",
table: "sms_send",
newName: "plan_send_date");
migrationBuilder.AddColumn<DateTime>(
name: "plan_follow_date",
table: "phone_follow_up",
type: "timestamp without time zone",
nullable: true,
defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "plan_follow_date",
table: "phone_follow_up");
migrationBuilder.RenameColumn(
name: "plan_send_date",
table: "sms_send",
newName: "send_date");
migrationBuilder.AddColumn<DateTime>(
name: "follow_up_date",
table: "phone_follow_up",
type: "timestamp without time zone",
nullable: false,
defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)");
}
}
}

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

@ -7841,12 +7841,6 @@ namespace Shentun.Peis.Migrations
.HasColumnName("follow_up_content") .HasColumnName("follow_up_content")
.HasComment("随访内容"); .HasComment("随访内容");
b.Property<DateTime>("FollowUpDate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp without time zone")
.HasColumnName("follow_up_date")
.HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
b.Property<Guid>("FollowUpId") b.Property<Guid>("FollowUpId")
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("follow_up_id"); .HasColumnName("follow_up_id");
@ -7869,6 +7863,12 @@ namespace Shentun.Peis.Migrations
.HasColumnType("uuid") .HasColumnType("uuid")
.HasColumnName("last_modifier_id"); .HasColumnName("last_modifier_id");
b.Property<DateTime?>("PlanFollowDate")
.ValueGeneratedOnAdd()
.HasColumnType("timestamp without time zone")
.HasColumnName("plan_follow_date")
.HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
b.Property<string>("ReplyContent") b.Property<string>("ReplyContent")
.HasMaxLength(200) .HasMaxLength(200)
.HasColumnType("character varying(200)") .HasColumnType("character varying(200)")
@ -10525,10 +10525,10 @@ namespace Shentun.Peis.Migrations
.HasColumnName("patient_name") .HasColumnName("patient_name")
.HasComment("姓名"); .HasComment("姓名");
b.Property<DateTime?>("SendDate")
b.Property<DateTime?>("PlanSendDate")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasColumnType("timestamp without time zone") .HasColumnType("timestamp without time zone")
.HasColumnName("send_date")
.HasColumnName("plan_send_date")
.HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)"); .HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");
b.Property<string>("SmsTypeId") b.Property<string>("SmsTypeId")

Loading…
Cancel
Save