Student.Core.API/Migrations/20200818064956_InitialCreate.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Student.Core.API.Migrations
{
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Account",
columns: table => new
{
Id = table.Column<Guid>(nullable: false),
ModifiedTime = table.Column<DateTime>(nullable: false),
UserName = table.Column<string>(type: "varchar(50)", nullable: false),
PassWord = table.Column<string>(type: "varchar(50)", nullable: false),
Type = table.Column<int>(nullable: false),
Name = table.Column<string>(type: "varchar(50)", nullable: false),
Status = table.Column<int>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Account", x => x.Id);
});
migrationBuilder.CreateTable(
name: "AuthInfo",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
ModifiedTime = table.Column<DateTime>(nullable: false),
AccountId = table.Column<Guid>(nullable: false),
Platform = table.Column<int>(nullable: false),
RefreshToken = table.Column<string>(nullable: true),
RefreshTokenExpiredTime = table.Column<DateTime>(nullable: false),
LoginTime = table.Column<long>(nullable: false),
LoginIP = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AuthInfo", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Config",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreatedTime = table.Column<DateTime>(nullable: false),
ModifiedTime = table.Column<DateTime>(nullable: false),
OperatorName = table.Column<string>(nullable: true),
Code = table.Column<string>(type: "varchar(50)", nullable: false),
Value = table.Column<string>(type: "varchar(1024)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Config", x => x.Id);
后面还有 129 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。