using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace MikrocopDb.Migrations { /// public partial class Initial : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Users", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), UserName = table.Column(type: "TEXT", maxLength: 100, nullable: false), FullName = table.Column(type: "TEXT", maxLength: 200, nullable: false), Email = table.Column(type: "TEXT", maxLength: 200, nullable: false), MobileNumber = table.Column(type: "TEXT", maxLength: 30, nullable: false), Language = table.Column(type: "TEXT", maxLength: 20, nullable: false), Culture = table.Column(type: "TEXT", maxLength: 20, nullable: false), PasswordHash = table.Column(type: "TEXT", nullable: false), PasswordSalt = table.Column(type: "TEXT", maxLength: 128, nullable: false) }, constraints: table => { table.PrimaryKey("PK_Users", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_Users_Email", table: "Users", column: "Email", unique: true); migrationBuilder.CreateIndex( name: "IX_Users_UserName", table: "Users", column: "UserName", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Users"); } } }