付费课程
This commit is contained in:
parent
c754e106cc
commit
fada293cd6
7506
VOL.Core/Migrations/20250721052046_v1.Designer.cs
generated
Normal file
7506
VOL.Core/Migrations/20250721052046_v1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
32
VOL.Core/Migrations/20250721052046_v1.cs
Normal file
32
VOL.Core/Migrations/20250721052046_v1.cs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace VOL.Core.Migrations
|
||||||
|
{
|
||||||
|
public partial class v1 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "CurricularType",
|
||||||
|
table: "Y_CurricularTaxonomy",
|
||||||
|
type: "int",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "课程类型");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CurricularType",
|
||||||
|
table: "Y_CurricularTaxonomy");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ClassroomStageId",
|
||||||
|
table: "Ai_HeartRateData");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7540
VOL.Core/Migrations/20250721065806_20250721v1.Designer.cs
generated
Normal file
7540
VOL.Core/Migrations/20250721065806_20250721v1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
37
VOL.Core/Migrations/20250721065806_20250721v1.cs
Normal file
37
VOL.Core/Migrations/20250721065806_20250721v1.cs
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace VOL.Core.Migrations
|
||||||
|
{
|
||||||
|
public partial class _20250721v1 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Y_CurricularPurchaseRecord",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
|
||||||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
||||||
|
UserId = table.Column<int>(type: "int", nullable: false, comment: "用户Id"), // ✅ 修复
|
||||||
|
TaxonomyId = table.Column<int>(type: "int", nullable: false, comment: "分类Id"), // ✅ 修复
|
||||||
|
RedeemCode = table.Column<string>(type: "nvarchar(1000)", nullable: true, comment: "兑换码"),
|
||||||
|
Remarks = table.Column<string>(type: "text", nullable: true, comment: "备注"),
|
||||||
|
CreateDate = table.Column<DateTime>(type: "datetime", nullable: false, comment: "创建时间")
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Y_CurricularPurchaseRecord", x => x.Id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Y_CurricularPurchaseRecord");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -617,6 +617,10 @@ namespace VOL.Core.Migrations
|
|||||||
.HasColumnType("int")
|
.HasColumnType("int")
|
||||||
.HasComment("课堂记录Id");
|
.HasComment("课堂记录Id");
|
||||||
|
|
||||||
|
b.Property<int>("ClassroomStageId")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("阶段Id");
|
||||||
|
|
||||||
b.Property<string>("Code")
|
b.Property<string>("Code")
|
||||||
.HasColumnType("nvarchar(100)")
|
.HasColumnType("nvarchar(100)")
|
||||||
.HasComment("AI设备的唯一编码");
|
.HasComment("AI设备的唯一编码");
|
||||||
@ -6850,6 +6854,40 @@ namespace VOL.Core.Migrations
|
|||||||
b.ToTable("Y_Curricular");
|
b.ToTable("Y_Curricular");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("VOL.Entity.DomainModels.YD.Y_CurricularPurchaseRecord", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("Id");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreateDate")
|
||||||
|
.HasColumnType("datetime")
|
||||||
|
.HasComment("创建时间");
|
||||||
|
|
||||||
|
b.Property<string>("RedeemCode")
|
||||||
|
.HasColumnType("nvarchar(1000)")
|
||||||
|
.HasComment("兑换码");
|
||||||
|
|
||||||
|
b.Property<string>("Remarks")
|
||||||
|
.HasColumnType("text")
|
||||||
|
.HasComment("备注");
|
||||||
|
|
||||||
|
b.Property<int>("TaxonomyId")
|
||||||
|
.HasColumnType("int)")
|
||||||
|
.HasComment("分类Id");
|
||||||
|
|
||||||
|
b.Property<int>("UserId")
|
||||||
|
.HasColumnType("int)")
|
||||||
|
.HasComment("用户Id");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Y_CurricularPurchaseRecord");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("VOL.Entity.DomainModels.YD.Y_CurricularTaxonomy", b =>
|
modelBuilder.Entity("VOL.Entity.DomainModels.YD.Y_CurricularTaxonomy", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
@ -6867,6 +6905,10 @@ namespace VOL.Core.Migrations
|
|||||||
.HasColumnType("int)")
|
.HasColumnType("int)")
|
||||||
.HasComment("创建人");
|
.HasComment("创建人");
|
||||||
|
|
||||||
|
b.Property<int>("CurricularType")
|
||||||
|
.HasColumnType("int)")
|
||||||
|
.HasComment("课程类型");
|
||||||
|
|
||||||
b.Property<int?>("Modifier")
|
b.Property<int?>("Modifier")
|
||||||
.HasColumnType("int)")
|
.HasColumnType("int)")
|
||||||
.HasComment("修改人");
|
.HasComment("修改人");
|
||||||
|
64
VOL.Entity/DomainModels/YD/Y_CurricularPurchaseRecord.cs
Normal file
64
VOL.Entity/DomainModels/YD/Y_CurricularPurchaseRecord.cs
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using VOL.Entity.SystemModels;
|
||||||
|
|
||||||
|
namespace VOL.Entity.DomainModels.YD
|
||||||
|
{
|
||||||
|
[Table("Y_CurricularPurchaseRecord")]
|
||||||
|
[Entity(TableCnName = "课程购买记录表", TableName = "Y_CurricularPurchaseRecord")]
|
||||||
|
public class Y_CurricularPurchaseRecord : BaseEntity
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
[Display(Description = "主键Id")]
|
||||||
|
[Comment("Id")]
|
||||||
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///用户Id
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "用户Id")]
|
||||||
|
[Comment("用户Id")]
|
||||||
|
[Column(TypeName = "int)")]
|
||||||
|
public int UserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///分类Id
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "分类Id")]
|
||||||
|
[Comment("分类Id")]
|
||||||
|
[Column(TypeName = "int)")]
|
||||||
|
public int TaxonomyId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///兑换码
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "兑换码")]
|
||||||
|
[Comment("兑换码")]
|
||||||
|
[Column(TypeName = "nvarchar(1000)")]
|
||||||
|
public string RedeemCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///备注
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "备注")]
|
||||||
|
[Comment("备注")]
|
||||||
|
[Column(TypeName = "text")]
|
||||||
|
public string Remarks { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///创建时间
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "创建时间")]
|
||||||
|
[Comment("创建时间")]
|
||||||
|
[Column(TypeName = "datetime")]
|
||||||
|
[Editable(true)]
|
||||||
|
public DateTime CreateDate { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -36,6 +36,14 @@ namespace VOL.Entity.DomainModels.YD
|
|||||||
[Column(TypeName = "text")]
|
[Column(TypeName = "text")]
|
||||||
public string Remarks { get; set; }
|
public string Remarks { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///课程类型
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "课程类型")]
|
||||||
|
[Comment("课程类型")]
|
||||||
|
[Column(TypeName = "int)")]
|
||||||
|
public int CurricularType { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///创建人
|
///创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user