using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace RecNet.Infrastructure.Persistence.Migrations { /// public partial class Initial : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Profiles", columns: table => new { ProfileId = table.Column(type: "uuid", nullable: false), Name = table.Column(type: "character varying(32)", maxLength: 32, nullable: false), Platform = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), PlatformId = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), DeviceIds = table.Column(type: "jsonb", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Profiles", x => x.ProfileId); }); migrationBuilder.CreateIndex( name: "IX_Profiles_Platform_PlatformId", table: "Profiles", columns: new[] { "Platform", "PlatformId" }, unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Profiles"); } } }