using Microsoft.EntityFrameworkCore.Migrations; namespace DatamodelLibrary.Migrations { public partial class completion_person_stock : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PersonStocks", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), PersonId = table.Column(type: "INTEGER", nullable: false), StockId = table.Column(type: "INTEGER", nullable: false), Comment = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_PersonStocks", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PersonStocks"); } } }