using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace gehGassiApp.Data.Migrations { public partial class RatingsAdded : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Ratings", columns: table => new { Id = table.Column(type: "TEXT", maxLength: 128, nullable: false), FromId = table.Column(type: "TEXT", maxLength: 128, nullable: false), FromType = table.Column(type: "INTEGER", nullable: false), TargetId = table.Column(type: "TEXT", maxLength: 128, nullable: false), TargetType = table.Column(type: "INTEGER", nullable: false), Points = table.Column(type: "TEXT", nullable: false), Info = table.Column(type: "TEXT", maxLength: 500, nullable: true), Created = table.Column(type: "INTEGER", nullable: false), Version = table.Column(type: "BLOB", rowVersion: true, nullable: true), UpdatedAt = table.Column(type: "INTEGER", nullable: false), Deleted = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Ratings", x => x.Id); }); System.Diagnostics.Debug.WriteLine($"Migration RatingsAdded done"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Ratings"); } } }