using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace DugunSalonu.Migrations { /// public partial class dugunsalonuContexcs : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Kullanici", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), KullaniciAdi = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), Adi = table.Column(type: "text", nullable: false), Soyadi = table.Column(type: "text", nullable: false), Parola = table.Column(type: "text", nullable: false), Eposta = table.Column(type: "text", nullable: false), CepTel = table.Column(type: "character varying(10)", maxLength: 10, nullable: false), Aktif = table.Column(type: "boolean", nullable: false), Admin = table.Column(type: "boolean", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Kullanici", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Kullanici"); } } }