1477 lines
51 KiB
C#
1477 lines
51 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Brizco.Repository.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace Brizco.Repository.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationContext))]
|
|
[Migration("20231210101559_editShiftPlanAddComplexId")]
|
|
partial class editShiftPlanAddComplexId
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasDefaultSchema("public")
|
|
.HasAnnotation("ProductVersion", "8.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Complex", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Address")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("SupportPhone")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Complexes", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.ComplexUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("ComplexUsers", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.ComplexUserRole", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexUserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexUserId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("ComplexUserRoles", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Position", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("SectionId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.HasIndex("SectionId");
|
|
|
|
b.ToTable("Positions", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Section", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.ToTable("Sections", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Routine.Routine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.ToTable("Routines", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.Shift", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<TimeSpan>("EndAt")
|
|
.HasColumnType("interval");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<TimeSpan>("StartAt")
|
|
.HasColumnType("interval");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.ToTable("Shifts", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftDay", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("DayOfWeek")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("ShiftId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ShiftId");
|
|
|
|
b.ToTable("ShiftDays", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftPlan", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("PlanFor")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoutineId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ShiftId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.HasIndex("RoutineId");
|
|
|
|
b.HasIndex("ShiftId");
|
|
|
|
b.ToTable("ShiftPlans", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftPlanUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("PositionId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("ShiftPlanId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PositionId");
|
|
|
|
b.HasIndex("ShiftPlanId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("ShiftPlanUsers", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftRoutine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoutineId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("ShiftId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoutineId");
|
|
|
|
b.HasIndex("ShiftId");
|
|
|
|
b.ToTable("ShiftRoutines", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.Task", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("Amount")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("AmountType")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<Guid>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Discriminator")
|
|
.IsRequired()
|
|
.HasMaxLength(8)
|
|
.HasColumnType("character varying(8)");
|
|
|
|
b.Property<bool>("HasDisposed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsActivity")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsDisposable")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("ScheduleType")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("SetFor")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("integer");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.ToTable("Tasks", "public");
|
|
|
|
b.HasDiscriminator<string>("Discriminator").HasValue("Task");
|
|
|
|
b.UseTphMappingStrategy();
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskDay", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("DayOfWeek")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TaskDays", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskPosition", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("PositionId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PositionId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TaskPositions", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskRoutine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoutineId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoutineId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TaskRoutines", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskShift", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("CreatedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsRemoved")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime>("ModifiedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ModifiedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("RemovedAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("RemovedBy")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("ShiftId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ShiftId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TaskShifts", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.User.ApplicationRole", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid?>("ComplexId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("EnglishName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("PersianName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ComplexId");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("Roles", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.User.ApplicationUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<DateTime>("BirthDate")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Gender")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("NationalId")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("SelectedComplexUserRoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("SignUpStatus")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("Users", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("RoleClaims", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Claims", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Logins", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("UserRoles", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("Tokens", "public");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.Activity", b =>
|
|
{
|
|
b.HasBaseType("Brizco.Domain.Entities.Task.Task");
|
|
|
|
b.Property<DateTime>("DoneAt")
|
|
.HasColumnType("timestamp without time zone");
|
|
|
|
b.Property<bool>("IsDone")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("PerformanceDescription")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("ShiftId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("UnDoneReason")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasIndex("ShiftId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasDiscriminator().HasValue("Activity");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.ComplexUser", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany("Users")
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.ComplexUserRole", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.ComplexUser", "ComplexUser")
|
|
.WithMany("Roles")
|
|
.HasForeignKey("ComplexUserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationRole", "Role")
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ComplexUser");
|
|
|
|
b.Navigation("Role");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Position", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany()
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Section", "Section")
|
|
.WithMany("Positions")
|
|
.HasForeignKey("SectionId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
|
|
b.Navigation("Section");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Section", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany()
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Routine.Routine", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany()
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.Shift", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany("Shifts")
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftDay", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Shift.Shift", "Shift")
|
|
.WithMany("Days")
|
|
.HasForeignKey("ShiftId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Shift");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftPlan", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany()
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Routine.Routine", "Routine")
|
|
.WithMany()
|
|
.HasForeignKey("RoutineId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Shift.Shift", "Shift")
|
|
.WithMany("Plans")
|
|
.HasForeignKey("ShiftId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
|
|
b.Navigation("Routine");
|
|
|
|
b.Navigation("Shift");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftPlanUser", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Position", "Position")
|
|
.WithMany()
|
|
.HasForeignKey("PositionId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Shift.ShiftPlan", "ShiftPlan")
|
|
.WithMany("Users")
|
|
.HasForeignKey("ShiftPlanId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Position");
|
|
|
|
b.Navigation("ShiftPlan");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftRoutine", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Routine.Routine", "Routine")
|
|
.WithMany("Shifts")
|
|
.HasForeignKey("RoutineId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Shift.Shift", "Shift")
|
|
.WithMany("Routines")
|
|
.HasForeignKey("ShiftId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Routine");
|
|
|
|
b.Navigation("Shift");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.Task", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany("Tasks")
|
|
.HasForeignKey("ComplexId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Complex");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskDay", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Task.Task", "Task")
|
|
.WithMany("Days")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskPosition", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Position", "Position")
|
|
.WithMany()
|
|
.HasForeignKey("PositionId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Task.Task", "Task")
|
|
.WithMany("Positions")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Position");
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskRoutine", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Routine.Routine", "Routine")
|
|
.WithMany("Tasks")
|
|
.HasForeignKey("RoutineId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Task.Task", "Task")
|
|
.WithMany("Routines")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Routine");
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.TaskShift", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Shift.Shift", "Shift")
|
|
.WithMany()
|
|
.HasForeignKey("ShiftId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.Task.Task", "Task")
|
|
.WithMany("Shifts")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Shift");
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.User.ApplicationRole", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Complex.Complex", "Complex")
|
|
.WithMany("Roles")
|
|
.HasForeignKey("ComplexId");
|
|
|
|
b.Navigation("Complex");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.Activity", b =>
|
|
{
|
|
b.HasOne("Brizco.Domain.Entities.Shift.Shift", "Shift")
|
|
.WithMany()
|
|
.HasForeignKey("ShiftId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Brizco.Domain.Entities.User.ApplicationUser", "User")
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Shift");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Complex", b =>
|
|
{
|
|
b.Navigation("Roles");
|
|
|
|
b.Navigation("Shifts");
|
|
|
|
b.Navigation("Tasks");
|
|
|
|
b.Navigation("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.ComplexUser", b =>
|
|
{
|
|
b.Navigation("Roles");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Complex.Section", b =>
|
|
{
|
|
b.Navigation("Positions");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Routine.Routine", b =>
|
|
{
|
|
b.Navigation("Shifts");
|
|
|
|
b.Navigation("Tasks");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.Shift", b =>
|
|
{
|
|
b.Navigation("Days");
|
|
|
|
b.Navigation("Plans");
|
|
|
|
b.Navigation("Routines");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Shift.ShiftPlan", b =>
|
|
{
|
|
b.Navigation("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("Brizco.Domain.Entities.Task.Task", b =>
|
|
{
|
|
b.Navigation("Days");
|
|
|
|
b.Navigation("Positions");
|
|
|
|
b.Navigation("Routines");
|
|
|
|
b.Navigation("Shifts");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|