一路
This commit is contained in:
parent
f4a61ff17e
commit
61e0d9c30a
7764
VOL.Core/Migrations/20260402010320_20260402v1.Designer.cs
generated
Normal file
7764
VOL.Core/Migrations/20260402010320_20260402v1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
57
VOL.Core/Migrations/20260402010320_20260402v1.cs
Normal file
57
VOL.Core/Migrations/20260402010320_20260402v1.cs
Normal file
@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace VOL.Core.Migrations
|
||||
{
|
||||
public partial class _20260402v1 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "YL_Device");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "EduId",
|
||||
table: "S_Student");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "EduId",
|
||||
table: "S_Student",
|
||||
type: "nvarchar(100)",
|
||||
nullable: true,
|
||||
comment: "EduId");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "YL_Device",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
AndroidId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
IMEI = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
IMSI = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
IsActive = table.Column<int>(type: "int", nullable: false),
|
||||
IsCalibration = table.Column<int>(type: "int", nullable: false),
|
||||
IsOnline = table.Column<int>(type: "int", nullable: false),
|
||||
IsSynchronization = table.Column<int>(type: "int", nullable: false),
|
||||
LastOnlineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
Remark = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
SerialNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||
SportStationId = table.Column<long>(type: "bigint", nullable: false),
|
||||
TenantName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_YL_Device", x => x.Id);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
7833
VOL.Core/Migrations/20260402010903_20260402v2.Designer.cs
generated
Normal file
7833
VOL.Core/Migrations/20260402010903_20260402v2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
47
VOL.Core/Migrations/20260402010903_20260402v2.cs
Normal file
47
VOL.Core/Migrations/20260402010903_20260402v2.cs
Normal file
@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace VOL.Core.Migrations
|
||||
{
|
||||
public partial class _20260402v2 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "YL_Device",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
SportStationId = table.Column<long>(type: "bigint", nullable: false),
|
||||
OrgId = table.Column<int>(type: "int", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
TenantName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
SerialNumber = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
||||
AndroidId = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
IMEI = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
IMSI = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
|
||||
IsCalibration = table.Column<int>(type: "int", nullable: false),
|
||||
IsSynchronization = table.Column<int>(type: "int", nullable: false),
|
||||
IsActive = table.Column<int>(type: "int", nullable: false),
|
||||
IsOnline = table.Column<int>(type: "int", nullable: false),
|
||||
LastOnlineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
Remark = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_YL_Device", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "YL_Device");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4381,10 +4381,6 @@ namespace VOL.Core.Migrations
|
||||
.HasColumnType("int)")
|
||||
.HasComment("创建人");
|
||||
|
||||
b.Property<string>("EduId")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("EduId");
|
||||
|
||||
b.Property<string>("HeartRateFrontNo")
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasComment("心率设备正面编号");
|
||||
@ -7337,6 +7333,9 @@ namespace VOL.Core.Migrations
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
|
||||
b.Property<int?>("OrgId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Remark")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)");
|
||||
|
||||
@ -27,6 +27,11 @@ namespace VOL.Entity.DomainModels.YiLu
|
||||
/// </summary>
|
||||
public long SportStationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 学校/组织ID(设备绑定的学校)
|
||||
/// </summary>
|
||||
public int? OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 运动小站名称
|
||||
/// </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user