feat(bll, dal): WeekendDayService + БД. CalendarService - получение рабочих дней за период
This commit is contained in:
2778
PARR.DAL/Migrations/20240701003839_tblWeekendDaysCreate.Designer.cs
generated
Normal file
2778
PARR.DAL/Migrations/20240701003839_tblWeekendDaysCreate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
34
PARR.DAL/Migrations/20240701003839_tblWeekendDaysCreate.cs
Normal file
34
PARR.DAL/Migrations/20240701003839_tblWeekendDaysCreate.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblWeekendDaysCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "WeekendDays",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
Date = table.Column<DateOnly>(type: "date", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_WeekendDays", x => x.Id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "WeekendDays");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2204,6 +2204,20 @@ namespace PARR.DAL.Migrations
|
||||
b.ToTable("UsersInRoles");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.WeekendDay", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<DateOnly>("Date")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("WeekendDays");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PARR.DAL.Models.Work", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
|
||||
Reference in New Issue
Block a user