ss
This commit is contained in:
parent
d42a18c64c
commit
e452d1dce8
7446
VOL.Core/Migrations/20250708062828_20250708v1.Designer.cs
generated
Normal file
7446
VOL.Core/Migrations/20250708062828_20250708v1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
36
VOL.Core/Migrations/20250708062828_20250708v1.cs
Normal file
36
VOL.Core/Migrations/20250708062828_20250708v1.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace VOL.Core.Migrations
|
||||||
|
{
|
||||||
|
public partial class _20250708v1 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Ai_ScanCodeLogin",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
|
||||||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
||||||
|
Code = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "AI设备的唯一编码"),
|
||||||
|
SchoolCode = table.Column<string>(type: "nvarchar(100)", nullable: true, comment: "学校编号"),
|
||||||
|
TeacherId = table.Column<int>(type: "int", nullable: false, comment: "老师Id"),
|
||||||
|
TeacherPhoneNo = table.Column<string>(type: "nvarchar(20)", nullable: true, comment: "老师联系方式"),
|
||||||
|
CreateDate = table.Column<DateTime>(type: "datetime", nullable: true, comment: "创建时间")
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Ai_ScanCodeLogin", x => x.Id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Ai_ScanCodeLogin");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -836,6 +836,40 @@ namespace VOL.Core.Migrations
|
|||||||
b.ToTable("Ai_ModeAssocModule");
|
b.ToTable("Ai_ModeAssocModule");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("VOL.Entity.DomainModels.Ai_ScanCodeLogin", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("Id");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"), 1L, 1);
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.HasColumnType("nvarchar(100)")
|
||||||
|
.HasComment("AI设备的唯一编码");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("CreateDate")
|
||||||
|
.HasColumnType("datetime")
|
||||||
|
.HasComment("创建时间");
|
||||||
|
|
||||||
|
b.Property<string>("SchoolCode")
|
||||||
|
.HasColumnType("nvarchar(100)")
|
||||||
|
.HasComment("学校编号");
|
||||||
|
|
||||||
|
b.Property<int>("TeacherId")
|
||||||
|
.HasColumnType("int")
|
||||||
|
.HasComment("老师Id");
|
||||||
|
|
||||||
|
b.Property<string>("TeacherPhoneNo")
|
||||||
|
.HasColumnType("nvarchar(20)")
|
||||||
|
.HasComment("老师联系方式");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Ai_ScanCodeLogin");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("VOL.Entity.DomainModels.Ai_Special", b =>
|
modelBuilder.Entity("VOL.Entity.DomainModels.Ai_Special", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("Id")
|
b.Property<int>("Id")
|
||||||
|
65
VOL.Entity/DomainModels/Ai/Ai_ScanCodeLogin.cs
Normal file
65
VOL.Entity/DomainModels/Ai/Ai_ScanCodeLogin.cs
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
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
|
||||||
|
{
|
||||||
|
[Table("Ai_ScanCodeLogin")]
|
||||||
|
[Entity(TableCnName = "Ai设备扫码登录", TableName = "Ai_ScanCodeLogin")]
|
||||||
|
public class Ai_ScanCodeLogin : BaseEntity
|
||||||
|
{
|
||||||
|
[Key]
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
[Display(Description = "主键Id")]
|
||||||
|
[Comment("Id")]
|
||||||
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// AI设备的唯一编码
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "AI设备的唯一编码")]
|
||||||
|
[Comment("AI设备的唯一编码")]
|
||||||
|
[Column(TypeName = "nvarchar(100)")]
|
||||||
|
public string Code { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///学校编号
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "学校编号")]
|
||||||
|
[Comment("学校编号")]
|
||||||
|
[Column(TypeName = "nvarchar(100)")]
|
||||||
|
public string SchoolCode { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///老师Id
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "老师Id")]
|
||||||
|
[Comment("老师Id")]
|
||||||
|
[Column(TypeName = "int")]
|
||||||
|
public int TeacherId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///老师联系方式
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "老师联系方式")]
|
||||||
|
[Comment("老师联系方式")]
|
||||||
|
[Column(TypeName = "nvarchar(20)")]
|
||||||
|
public string TeacherPhoneNo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///创建时间
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "创建时间")]
|
||||||
|
[Comment("创建时间")]
|
||||||
|
[Column(TypeName = "datetime")]
|
||||||
|
[Editable(true)]
|
||||||
|
public DateTime? CreateDate { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user