File was renamed from FlexJobApi.Database.Migrations/Migrations/LogDb/20250801013139_Init.cs |
| | |
| | | ClientIpAddress = table.Column<string>(type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "客户IP地址"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | |
| | | NewValues = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "新值"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | |
| | | StackTrace = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "堆栈跟踪"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | |
| | | ElapsedMilliseconds = table.Column<long>(type: "bigint", nullable: false, comment: "耗时毫秒数"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | | table.PrimaryKey("PK_QueueLog", x => x.Id); |
| | | }, |
| | | comment: "消息队列日志"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "ResourceLog", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
| | | Url = table.Column<string>(type: "nvarchar(max)", nullable: false), |
| | | Method = table.Column<string>(type: "nvarchar(6)", maxLength: 6, nullable: false), |
| | | Headers = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | Request = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | Callback = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | IsSuccess = table.Column<bool>(type: "bit", nullable: false), |
| | | ClientIpAddress = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | ElapsedMilliseconds = table.Column<long>(type: "bigint", nullable: false), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | | table.PrimaryKey("PK_ResourceLog", x => x.Id); |
| | | }); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "SmsLog", |
| | |
| | | IsUsed = table.Column<bool>(type: "bit", nullable: false, comment: "是否使用"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | Sort = table.Column<int>(type: "int", nullable: false, comment: "排序"), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "跟踪Id"), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "创建操作人"), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true, comment: "最后更新操作人"), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false, comment: "是否删除") |
| | | }, |
| | | constraints: table => |
| | | { |
| | | table.PrimaryKey("PK_SmsLog", x => x.Id); |
| | | }, |
| | | comment: "短信日志"); |
| | | |
| | | migrationBuilder.CreateTable( |
| | | name: "WebApiLog", |
| | | columns: table => new |
| | | { |
| | | Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
| | | Url = table.Column<string>(type: "nvarchar(max)", nullable: false, comment: "链接地址"), |
| | | Method = table.Column<string>(type: "nvarchar(6)", maxLength: 6, nullable: false, comment: "请求方式"), |
| | | Headers = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "请求头"), |
| | | Request = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "请求参数"), |
| | | Callback = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "回调数据"), |
| | | IsSuccess = table.Column<bool>(type: "bit", nullable: false, comment: "是否成功"), |
| | | ClientIpAddress = table.Column<string>(type: "nvarchar(max)", nullable: true, comment: "客户端IP地址"), |
| | | ElapsedMilliseconds = table.Column<long>(type: "bigint", nullable: false, comment: "耗时毫秒数"), |
| | | CreatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: false), |
| | | UpdatedTime = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true), |
| | | Sort = table.Column<int>(type: "int", nullable: false), |
| | | TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
| | | CreatedUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | UpdateUserInfoId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
| | | IsDeleted = table.Column<bool>(type: "bit", nullable: false) |
| | | }, |
| | | constraints: table => |
| | | { |
| | | table.PrimaryKey("PK_WebApiLog", x => x.Id); |
| | | }, |
| | | comment: "接口日志"); |
| | | } |
| | | |
| | | /// <inheritdoc /> |
| | |
| | | name: "QueueLog"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "SmsLog"); |
| | | name: "ResourceLog"); |
| | | |
| | | migrationBuilder.DropTable( |
| | | name: "WebApiLog"); |
| | | name: "SmsLog"); |
| | | } |
| | | } |
| | | } |