using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LittleShop.Migrations { /// public partial class AddSystemSettingsTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SystemSettings", columns: table => new { Key = table.Column(type: "TEXT", nullable: false), Value = table.Column(type: "TEXT", nullable: false), Description = table.Column(type: "TEXT", nullable: true), CreatedAt = table.Column(type: "TEXT", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SystemSettings", x => x.Key); }); migrationBuilder.CreateIndex( name: "IX_SystemSettings_Key", table: "SystemSettings", column: "Key", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SystemSettings"); } } }