20250106114622_addSubscription.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. #nullable disable
  4. namespace MTWorkHR.Infrastructure.Migrations
  5. {
  6. /// <inheritdoc />
  7. public partial class addSubscription : Migration
  8. {
  9. /// <inheritdoc />
  10. protected override void Up(MigrationBuilder migrationBuilder)
  11. {
  12. migrationBuilder.CreateTable(
  13. name: "SubscriptionConfiguration",
  14. columns: table => new
  15. {
  16. Id = table.Column<long>(type: "bigint", nullable: false)
  17. .Annotation("SqlServer:Identity", "1, 1"),
  18. CreateUser = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: true),
  19. UpdateUser = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: true),
  20. CreateDate = table.Column<DateTime>(type: "datetime2", nullable: false),
  21. UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
  22. IsDeleted = table.Column<bool>(type: "bit", nullable: false),
  23. DeleteUserId = table.Column<string>(type: "nvarchar(450)", maxLength: 450, nullable: true),
  24. FirstRegisterationCompanyFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  25. MonthlyCompanyFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  26. YearlyCompanyFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  27. MonthlyEmployeeServicesCompanyFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  28. DistinguishedEmployeeCompanyFeesPerc = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  29. OrdinaryEmployeePerc = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  30. DistinguishedEmployeePerc = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  31. DeductedFirstSearchAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  32. ContractDocumentationFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  33. ExperienceCertificateFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
  34. RequestDisputeResolutionFees = table.Column<decimal>(type: "decimal(18,2)", nullable: true)
  35. },
  36. constraints: table =>
  37. {
  38. table.PrimaryKey("PK_SubscriptionConfiguration", x => x.Id);
  39. });
  40. }
  41. /// <inheritdoc />
  42. protected override void Down(MigrationBuilder migrationBuilder)
  43. {
  44. migrationBuilder.DropTable(
  45. name: "SubscriptionConfiguration");
  46. }
  47. }
  48. }