using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ShareGuard.Web.Migrations { /// public partial class Init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Links", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Token = table.Column(type: "TEXT", nullable: false), Name = table.Column(type: "TEXT", nullable: false), IpAddress = table.Column(type: "TEXT", nullable: false), PeerPublicKey = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Links", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Links"); } } }