feat(store): 扩展临时时段配置

This commit is contained in:
2026-01-20 18:41:34 +08:00
parent 3385674490
commit 32f5bbbd43
15 changed files with 7871 additions and 33 deletions

View File

@@ -5482,7 +5482,7 @@ namespace TakeoutSaaS.Infrastructure.Migrations
b.Property<DateTime>("Date")
.HasColumnType("timestamp with time zone")
.HasComment("日期。");
.HasComment("开始日期(原 Date 字段)。");
b.Property<DateTime?>("DeletedAt")
.HasColumnType("timestamp with time zone")
@@ -5492,15 +5492,41 @@ namespace TakeoutSaaS.Infrastructure.Migrations
.HasColumnType("bigint")
.HasComment("删除人用户标识(软删除),未删除时为 null。");
b.Property<bool>("IsClosed")
b.Property<DateTime?>("EndDate")
.HasColumnType("timestamp with time zone")
.HasComment("结束日期(可选,用于日期范围,如春节 1.28~2.4)。");
b.Property<TimeSpan?>("EndTime")
.HasColumnType("interval")
.HasComment("结束时间IsAllDay=false 时使用)。");
b.Property<bool>("IsAllDay")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasComment("是否全天闭店。");
.HasDefaultValue(true)
.HasComment("是否全天生效。true=全天false=仅 StartTime~EndTime 时段。");
b.Property<bool>("IsClosed")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(true)
.HasComment("是否闭店(兼容旧数据,新逻辑请用 OverrideType。");
b.Property<int>("OverrideType")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasDefaultValue(0)
.HasComment("覆盖类型(闭店/临时营业/调整时间)。");
b.Property<string>("Reason")
.HasMaxLength(256)
.HasColumnType("character varying(256)")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasComment("说明内容。");
b.Property<TimeSpan?>("StartTime")
.HasColumnType("interval")
.HasComment("开始时间IsAllDay=false 时使用)。");
b.Property<long>("StoreId")
.HasColumnType("bigint")
.HasComment("门店标识。");
@@ -5519,12 +5545,11 @@ namespace TakeoutSaaS.Infrastructure.Migrations
b.HasKey("Id");
b.HasIndex("TenantId", "StoreId", "Date")
.IsUnique();
b.HasIndex("TenantId", "StoreId", "Date");
b.ToTable("store_holidays", null, t =>
{
t.HasComment("门店休息日或特殊营业日。");
t.HasComment("门店临时时段配置(节假日/歇业/调整营业时间)。");
});
});