47 lines
2.2 KiB
C#
47 lines
2.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class initpaymenttransaction : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "PaymentTransactions",
|
|
columns: table => new
|
|
{
|
|
id = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
TransactionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
ContractingPartyId = table.Column<long>(type: "bigint", nullable: false),
|
|
ContractingPartyName = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
BankAccountHolderName = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
|
BankName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CardNumber = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
|
|
ShebaNumber = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
AccountNumber = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
|
|
Status = table.Column<string>(type: "nvarchar(35)", maxLength: 35, nullable: false),
|
|
Amount = table.Column<double>(type: "float", nullable: false),
|
|
TransactionId = table.Column<string>(type: "nvarchar(60)", maxLength: 60, nullable: true),
|
|
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PaymentTransactions", x => x.id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "PaymentTransactions");
|
|
}
|
|
}
|
|
}
|