This commit is contained in:
tanglong 2026-04-16 13:18:24 +08:00
parent f4a61ff17e
commit 61e0d9c30a
6 changed files with 15709 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View 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);
});
}
}
}

File diff suppressed because it is too large Load Diff

View 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");
}
}
}

View File

@ -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)");

View File

@ -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>