Organizasyon Tablosu Eklendi.
This commit is contained in:
55
Migrations/20250814210347_mig12.cs
Normal file
55
Migrations/20250814210347_mig12.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DugunSalonu.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class mig12 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "organizasyon",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
rezervasyontarihi = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
sozlesmetarihi = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
organizasyontarihi = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
organizasyonsaati = table.Column<string>(type: "text", nullable: false),
|
||||
adi = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||
soyadi = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false),
|
||||
ceptel = table.Column<int>(type: "integer", maxLength: 10, nullable: false),
|
||||
ceptel2 = table.Column<int>(type: "integer", maxLength: 10, nullable: true),
|
||||
gelinyore = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
|
||||
damatyore = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
|
||||
aciklama = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
organizasyondurum = table.Column<string>(type: "character varying(10)", maxLength: 10, nullable: false),
|
||||
fiyat = table.Column<decimal>(type: "numeric(18,2)", nullable: false),
|
||||
kts = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
||||
kk = table.Column<int>(type: "integer", nullable: false),
|
||||
sozlesme = table.Column<byte[]>(type: "bytea", nullable: true),
|
||||
iptal = table.Column<int>(type: "integer", nullable: true),
|
||||
iptalkk = table.Column<int>(type: "integer", nullable: true),
|
||||
iptalkts = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
|
||||
iptalaciklama = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_organizasyon", x => x.id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "organizasyon");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user