using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20260630v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "YL_AppVersion", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), ApplyName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), DeviceType = table.Column(type: "int", nullable: false), HardwareType = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), OperatingSystem = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), VersionNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), VersionCode = table.Column(type: "int", nullable: false), NeedForcedUpdating = table.Column(type: "int", nullable: false), UpdateUrl = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), IsLatest = table.Column(type: "int", nullable: false), PublishStatus = table.Column(type: "int", nullable: false), MinSupportVersion = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), UpdateContent = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), FileSize = table.Column(type: "bigint", nullable: true), FileMd5 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), GrayPercent = table.Column(type: "int", nullable: false), Status = table.Column(type: "int", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateTime = table.Column(type: "datetime2", nullable: true), Remark = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true) }, constraints: table => { table.PrimaryKey("PK_YL_AppVersion", x => x.Id); }); migrationBuilder.CreateTable( name: "YL_DeviceVideo", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), DeviceSerial = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), DeviceType = table.Column(type: "int", nullable: false), VideoSerial = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), VideoUrl = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false), FileName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), FileSize = table.Column(type: "bigint", nullable: true), Duration = table.Column(type: "int", nullable: true), Timestamp = table.Column(type: "bigint", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), Status = table.Column(type: "int", nullable: false), Remark = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true) }, constraints: table => { table.PrimaryKey("PK_YL_DeviceVideo", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "YL_AppVersion"); migrationBuilder.DropTable( name: "YL_DeviceVideo"); } } }