diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a74613 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.dll diff --git a/Vpassbackend/Controllers/ClosureScheduleController.cs b/Vpassbackend/Controllers/ClosureScheduleController.cs new file mode 100644 index 0000000..566fe4d --- /dev/null +++ b/Vpassbackend/Controllers/ClosureScheduleController.cs @@ -0,0 +1,42 @@ +using Microsoft.AspNetCore.Mvc; +using System.Linq; +using System.Threading.Tasks; +using Vpassbackend.Data; +using Vpassbackend.Models; + +namespace Vpassbackend.Controllers +{ + [ApiController] + [Route("api/[controller]")] + public class ClosureScheduleController : ControllerBase + { + private readonly ApplicationDbContext _context; + public ClosureScheduleController(ApplicationDbContext context) => _context = context; + + [HttpPost] + public async Task AddClosure([FromBody] ClosureSchedule closure) + { + bool exists = _context.ClosureSchedules.Any(c => + c.ServiceCenterId == closure.ServiceCenterId && + c.WeekNumber == closure.WeekNumber && + c.Day == closure.Day); + if (exists) return BadRequest("Duplicate closure entry."); + + // Reset the ID to 0 to let Entity Framework generate it + closure.Id = 0; + + _context.ClosureSchedules.Add(closure); + await _context.SaveChangesAsync(); + return Ok(closure); + } + + [HttpGet("{serviceCenterId}")] + public IActionResult GetClosures(int serviceCenterId, [FromQuery] int weekNumber) + { + var closures = _context.ClosureSchedules + .Where(c => c.ServiceCenterId == serviceCenterId && c.WeekNumber == weekNumber) + .ToList(); + return Ok(closures); + } + } +} diff --git a/Vpassbackend/Controllers/ServiceController.cs b/Vpassbackend/Controllers/ServiceController.cs new file mode 100644 index 0000000..e3261a2 --- /dev/null +++ b/Vpassbackend/Controllers/ServiceController.cs @@ -0,0 +1,81 @@ +using Microsoft.AspNetCore.Mvc; +using System.Linq; +using System.Threading.Tasks; +using Vpassbackend.Data; +using Vpassbackend.Models; + +namespace Vpassbackend.Controllers +{ + [ApiController] + [Route("api/[controller]")] + public class ServiceController : ControllerBase + { + private readonly ApplicationDbContext _context; + public ServiceController(ApplicationDbContext context) => _context = context; + + [HttpGet("{serviceCenterId}")] + public IActionResult GetServices(int serviceCenterId, [FromQuery] int weekNumber) + { + var services = _context.ServiceCenterServices + .Where(s => s.Station_id == serviceCenterId) + .Select(s => new { + s.ServiceId, + s.Service.ServiceName, + IsAvailable = !_context.ServiceAvailabilities.Any(a => + a.ServiceCenterId == serviceCenterId && + a.ServiceId == s.ServiceId && + a.WeekNumber == weekNumber && + !a.IsAvailable) + }).ToList(); + return Ok(services); + } + + [HttpPost("SetAvailability")] + public async Task SetAvailability([FromBody] ServiceAvailability availability) + { + // Reset the ID to 0 to let Entity Framework generate it + availability.Id = 0; + + var existing = _context.ServiceAvailabilities.FirstOrDefault(a => + a.ServiceCenterId == availability.ServiceCenterId && + a.ServiceId == availability.ServiceId && + a.WeekNumber == availability.WeekNumber && + a.Day == availability.Day); + + if (existing != null) + { + existing.IsAvailable = availability.IsAvailable; + } + else + { + _context.ServiceAvailabilities.Add(availability); + } + await _context.SaveChangesAsync(); + return Ok(); + } + + [HttpGet("{serviceCenterId}/available")] + public IActionResult GetAvailableServices(int serviceCenterId, [FromQuery] int weekNumber, [FromQuery] string day) + { + // Check if the service center is closed on this week and day + bool isClosed = _context.ClosureSchedules + .Any(cs => cs.ServiceCenterId == serviceCenterId && cs.WeekNumber == weekNumber && cs.Day == day); + + if (isClosed) + return Ok(new List()); // Service center is closed + + var availableServices = (from sa in _context.ServiceAvailabilities + join s in _context.Services on sa.ServiceId equals s.ServiceId + where sa.ServiceCenterId == serviceCenterId + && sa.WeekNumber == weekNumber + && sa.Day == day + && sa.IsAvailable + select new { + sa.ServiceId, + ServiceName = s.ServiceName + }).ToList(); + + return Ok(availableServices); + } + } +} diff --git a/Vpassbackend/Data/ApplicationDbContext.cs b/Vpassbackend/Data/ApplicationDbContext.cs index a745430..7a6f437 100644 --- a/Vpassbackend/Data/ApplicationDbContext.cs +++ b/Vpassbackend/Data/ApplicationDbContext.cs @@ -24,6 +24,8 @@ public ApplicationDbContext(DbContextOptions options) public DbSet Vehicles { get; set; } public DbSet VehicleServiceHistories { get; set; } public DbSet EmergencyCallCenters { get; set; } + public DbSet ClosureSchedules { get; set; } + public DbSet ServiceAvailabilities { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) diff --git a/Vpassbackend/Migrations/20250709065437_InitialCreate.Designer.cs b/Vpassbackend/Migrations/20250709065437_InitialCreate.Designer.cs deleted file mode 100644 index 44657c6..0000000 --- a/Vpassbackend/Migrations/20250709065437_InitialCreate.Designer.cs +++ /dev/null @@ -1,577 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250709065437_InitialCreate")] - partial class InitialCreate - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.18") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.Property("AppointmentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("AppointmentId")); - - b.Property("AppointmentDate") - .HasColumnType("datetime2"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("AppointmentId"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ServiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.Property("PointId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("PointId")); - - b.Property("CheckDate") - .HasColumnType("datetime2"); - - b.Property("CheckPoint") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EntryPoint") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("PointId"); - - b.HasIndex("VehicleId"); - - b.ToTable("BorderPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Customer", b => - { - b.Property("CustomerId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("NIC") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("CustomerId"); - - b.ToTable("Customers"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.Property("DocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("DocumentId")); - - b.Property("DocumentType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("FilePath") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("UploadDate") - .HasColumnType("datetime2"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("DocumentId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Documents"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Property("InvoiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("InvoiceId")); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("TotalCost") - .HasColumnType("decimal(10, 2)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("InvoiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Invoices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.Property("LogId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("LogId")); - - b.Property("InvoiceId") - .HasColumnType("int"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("LogId"); - - b.HasIndex("InvoiceId"); - - b.ToTable("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Property("ServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceId")); - - b.Property("BasePrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("ServiceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("ServiceId"); - - b.HasIndex("Station_id"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Property("Station_id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Station_id")); - - b.Property("Address") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OwnerName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegisterationNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_name") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Station_status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Telephone") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VATNumber") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.HasKey("Station_id"); - - b.ToTable("ServiceCenters"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.Property("StationId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("StationId")); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("StationId"); - - b.HasIndex("Station_id"); - - b.ToTable("ServiceCenterCheckInPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserId")); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserRoleId") - .HasColumnType("int"); - - b.HasKey("UserId"); - - b.HasIndex("UserRoleId"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Vpassbackend.Models.UserRole", b => - { - b.Property("UserRoleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserRoleId")); - - b.Property("UserRoleName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("UserRoleId"); - - b.ToTable("UserRoles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Property("VehicleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("VehicleId")); - - b.Property("Brand") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ChassisNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Fuel") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Mileage") - .HasColumnType("int"); - - b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegistrationNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasColumnType("int"); - - b.HasKey("VehicleId"); - - b.HasIndex("CustomerId"); - - b.ToTable("Vehicles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("Appointments") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Appointments") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Service"); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("BorderPoints") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Documents") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Invoices") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.HasOne("Vpassbackend.Models.Invoice", "Invoice") - .WithMany("PaymentLogs") - .HasForeignKey("InvoiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Invoice"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("Services") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("CheckInPoints") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.HasOne("Vpassbackend.Models.UserRole", "UserRole") - .WithMany() - .HasForeignKey("UserRoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("UserRole"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Navigation("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Navigation("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Navigation("CheckInPoints"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Navigation("Appointments"); - - b.Navigation("BorderPoints"); - - b.Navigation("Documents"); - - b.Navigation("Invoices"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250709104530_AddAppointmentBookingSystem.cs b/Vpassbackend/Migrations/20250709104530_AddAppointmentBookingSystem.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Vpassbackend/Migrations/20250710000001_AddCoordinatesToServiceCenter.cs b/Vpassbackend/Migrations/20250710000001_AddCoordinatesToServiceCenter.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Vpassbackend/Migrations/20250710150000_RemoveAppointmentSystem.Designer.cs b/Vpassbackend/Migrations/20250710150000_RemoveAppointmentSystem.Designer.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Vpassbackend/Migrations/20250710150000_RemoveAppointmentSystem.cs b/Vpassbackend/Migrations/20250710150000_RemoveAppointmentSystem.cs deleted file mode 100644 index e69de29..0000000 diff --git a/Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.Designer.cs b/Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.Designer.cs deleted file mode 100644 index ab55050..0000000 --- a/Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.Designer.cs +++ /dev/null @@ -1,577 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710153706_AddServiceCenterManagement")] - partial class AddServiceCenterManagement - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.18") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.Property("AppointmentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("AppointmentId")); - - b.Property("AppointmentDate") - .HasColumnType("datetime2"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("AppointmentId"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ServiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.Property("PointId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("PointId")); - - b.Property("CheckDate") - .HasColumnType("datetime2"); - - b.Property("CheckPoint") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EntryPoint") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("PointId"); - - b.HasIndex("VehicleId"); - - b.ToTable("BorderPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Customer", b => - { - b.Property("CustomerId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("NIC") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("CustomerId"); - - b.ToTable("Customers"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.Property("DocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("DocumentId")); - - b.Property("DocumentType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("FilePath") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("UploadDate") - .HasColumnType("datetime2"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("DocumentId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Documents"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Property("InvoiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("InvoiceId")); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("TotalCost") - .HasColumnType("decimal(10, 2)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("InvoiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Invoices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.Property("LogId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("LogId")); - - b.Property("InvoiceId") - .HasColumnType("int"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("LogId"); - - b.HasIndex("InvoiceId"); - - b.ToTable("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Property("ServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceId")); - - b.Property("BasePrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("ServiceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("ServiceId"); - - b.HasIndex("Station_id"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Property("Station_id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Station_id")); - - b.Property("Address") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OwnerName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegisterationNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_name") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Station_status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Telephone") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VATNumber") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.HasKey("Station_id"); - - b.ToTable("ServiceCenters"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.Property("StationId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("StationId")); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("StationId"); - - b.HasIndex("Station_id"); - - b.ToTable("ServiceCenterCheckInPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserId")); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserRoleId") - .HasColumnType("int"); - - b.HasKey("UserId"); - - b.HasIndex("UserRoleId"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Vpassbackend.Models.UserRole", b => - { - b.Property("UserRoleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserRoleId")); - - b.Property("UserRoleName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("UserRoleId"); - - b.ToTable("UserRoles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Property("VehicleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("VehicleId")); - - b.Property("Brand") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ChassisNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Fuel") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Mileage") - .HasColumnType("int"); - - b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegistrationNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasColumnType("int"); - - b.HasKey("VehicleId"); - - b.HasIndex("CustomerId"); - - b.ToTable("Vehicles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("Appointments") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Appointments") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Service"); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("BorderPoints") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Documents") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Invoices") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.HasOne("Vpassbackend.Models.Invoice", "Invoice") - .WithMany("PaymentLogs") - .HasForeignKey("InvoiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Invoice"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("Services") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("CheckInPoints") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.HasOne("Vpassbackend.Models.UserRole", "UserRole") - .WithMany() - .HasForeignKey("UserRoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("UserRole"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Navigation("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Navigation("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Navigation("CheckInPoints"); - - b.Navigation("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Navigation("Appointments"); - - b.Navigation("BorderPoints"); - - b.Navigation("Documents"); - - b.Navigation("Invoices"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.Designer.cs b/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.Designer.cs deleted file mode 100644 index ae77d1a..0000000 --- a/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.Designer.cs +++ /dev/null @@ -1,620 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710160743_CreateServiceCenterServicesTable")] - partial class CreateServiceCenterServicesTable - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.18") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.Property("AppointmentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("AppointmentId")); - - b.Property("AppointmentDate") - .HasColumnType("datetime2"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("AppointmentId"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ServiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.Property("PointId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("PointId")); - - b.Property("CheckDate") - .HasColumnType("datetime2"); - - b.Property("CheckPoint") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EntryPoint") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("PointId"); - - b.HasIndex("VehicleId"); - - b.ToTable("BorderPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Customer", b => - { - b.Property("CustomerId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("NIC") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("CustomerId"); - - b.ToTable("Customers"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.Property("DocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("DocumentId")); - - b.Property("DocumentType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("FilePath") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("UploadDate") - .HasColumnType("datetime2"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("DocumentId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Documents"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Property("InvoiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("InvoiceId")); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("TotalCost") - .HasColumnType("decimal(10, 2)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("InvoiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Invoices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.Property("LogId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("LogId")); - - b.Property("InvoiceId") - .HasColumnType("int"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("LogId"); - - b.HasIndex("InvoiceId"); - - b.ToTable("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Property("ServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceId")); - - b.Property("BasePrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("ServiceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("ServiceId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Property("Station_id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Station_id")); - - b.Property("Address") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OwnerName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegisterationNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_name") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Station_status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Telephone") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VATNumber") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.HasKey("Station_id"); - - b.ToTable("ServiceCenters"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.Property("StationId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("StationId")); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("StationId"); - - b.HasIndex("Station_id"); - - b.ToTable("ServiceCenterCheckInPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.Property("ServiceCenterServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceCenterServiceId")); - - b.Property("CustomPrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("IsAvailable") - .HasColumnType("bit"); - - b.Property("Notes") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("ServiceCenterServiceId"); - - b.HasIndex("Station_id"); - - b.HasIndex("ServiceId", "Station_id") - .IsUnique(); - - b.ToTable("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserId")); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserRoleId") - .HasColumnType("int"); - - b.HasKey("UserId"); - - b.HasIndex("UserRoleId"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Vpassbackend.Models.UserRole", b => - { - b.Property("UserRoleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserRoleId")); - - b.Property("UserRoleName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("UserRoleId"); - - b.ToTable("UserRoles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Property("VehicleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("VehicleId")); - - b.Property("Brand") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ChassisNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Fuel") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Mileage") - .HasColumnType("int"); - - b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegistrationNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasColumnType("int"); - - b.HasKey("VehicleId"); - - b.HasIndex("CustomerId"); - - b.ToTable("Vehicles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("Appointments") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Appointments") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Service"); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("BorderPoints") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Documents") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Invoices") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.HasOne("Vpassbackend.Models.Invoice", "Invoice") - .WithMany("PaymentLogs") - .HasForeignKey("InvoiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Invoice"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("CheckInPoints") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("ServiceCenterServices") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("ServiceCenterServices") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Service"); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.HasOne("Vpassbackend.Models.UserRole", "UserRole") - .WithMany() - .HasForeignKey("UserRoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("UserRole"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Navigation("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Navigation("Appointments"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Navigation("CheckInPoints"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Navigation("Appointments"); - - b.Navigation("BorderPoints"); - - b.Navigation("Documents"); - - b.Navigation("Invoices"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.cs b/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.cs deleted file mode 100644 index af8a96a..0000000 --- a/Vpassbackend/Migrations/20250710160743_CreateServiceCenterServicesTable.cs +++ /dev/null @@ -1,104 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class CreateServiceCenterServicesTable : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Services_ServiceCenters_Station_id", - table: "Services"); - - migrationBuilder.DropIndex( - name: "IX_Services_Station_id", - table: "Services"); - - migrationBuilder.DropColumn( - name: "Station_id", - table: "Services"); - - migrationBuilder.AddColumn( - name: "Category", - table: "Services", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.CreateTable( - name: "ServiceCenterServices", - columns: table => new - { - ServiceCenterServiceId = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Station_id = table.Column(type: "int", nullable: false), - ServiceId = table.Column(type: "int", nullable: false), - CustomPrice = table.Column(type: "decimal(10,2)", nullable: true), - IsAvailable = table.Column(type: "bit", nullable: false), - Notes = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ServiceCenterServices", x => x.ServiceCenterServiceId); - table.ForeignKey( - name: "FK_ServiceCenterServices_ServiceCenters_Station_id", - column: x => x.Station_id, - principalTable: "ServiceCenters", - principalColumn: "Station_id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_ServiceCenterServices_Services_ServiceId", - column: x => x.ServiceId, - principalTable: "Services", - principalColumn: "ServiceId", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_ServiceCenterServices_ServiceId_Station_id", - table: "ServiceCenterServices", - columns: new[] { "ServiceId", "Station_id" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_ServiceCenterServices_Station_id", - table: "ServiceCenterServices", - column: "Station_id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ServiceCenterServices"); - - migrationBuilder.DropColumn( - name: "Category", - table: "Services"); - - migrationBuilder.AddColumn( - name: "Station_id", - table: "Services", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Services_Station_id", - table: "Services", - column: "Station_id"); - - migrationBuilder.AddForeignKey( - name: "FK_Services_ServiceCenters_Station_id", - table: "Services", - column: "Station_id", - principalTable: "ServiceCenters", - principalColumn: "Station_id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.Designer.cs b/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.Designer.cs deleted file mode 100644 index 5ae8c4b..0000000 --- a/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.Designer.cs +++ /dev/null @@ -1,636 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710161221_UpdateAppointmentModel")] - partial class UpdateAppointmentModel - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.18") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.Property("AppointmentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("AppointmentId")); - - b.Property("AppointmentDate") - .HasColumnType("datetime2"); - - b.Property("AppointmentPrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("AppointmentId"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ServiceId"); - - b.HasIndex("Station_id"); - - b.HasIndex("VehicleId"); - - b.ToTable("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.Property("PointId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("PointId")); - - b.Property("CheckDate") - .HasColumnType("datetime2"); - - b.Property("CheckPoint") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EntryPoint") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("PointId"); - - b.HasIndex("VehicleId"); - - b.ToTable("BorderPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Customer", b => - { - b.Property("CustomerId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("NIC") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("CustomerId"); - - b.ToTable("Customers"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.Property("DocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("DocumentId")); - - b.Property("DocumentType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("FilePath") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("UploadDate") - .HasColumnType("datetime2"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("DocumentId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Documents"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Property("InvoiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("InvoiceId")); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("TotalCost") - .HasColumnType("decimal(10, 2)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("InvoiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Invoices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.Property("LogId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("LogId")); - - b.Property("InvoiceId") - .HasColumnType("int"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("LogId"); - - b.HasIndex("InvoiceId"); - - b.ToTable("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Property("ServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceId")); - - b.Property("BasePrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("ServiceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("ServiceId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Property("Station_id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Station_id")); - - b.Property("Address") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OwnerName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegisterationNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_name") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Station_status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Telephone") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VATNumber") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.HasKey("Station_id"); - - b.ToTable("ServiceCenters"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.Property("StationId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("StationId")); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("StationId"); - - b.HasIndex("Station_id"); - - b.ToTable("ServiceCenterCheckInPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.Property("ServiceCenterServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceCenterServiceId")); - - b.Property("CustomPrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("IsAvailable") - .HasColumnType("bit"); - - b.Property("Notes") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("ServiceCenterServiceId"); - - b.HasIndex("Station_id"); - - b.HasIndex("ServiceId", "Station_id") - .IsUnique(); - - b.ToTable("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserId")); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserRoleId") - .HasColumnType("int"); - - b.HasKey("UserId"); - - b.HasIndex("UserRoleId"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Vpassbackend.Models.UserRole", b => - { - b.Property("UserRoleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserRoleId")); - - b.Property("UserRoleName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("UserRoleId"); - - b.ToTable("UserRoles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Property("VehicleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("VehicleId")); - - b.Property("Brand") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ChassisNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Fuel") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Mileage") - .HasColumnType("int"); - - b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegistrationNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasColumnType("int"); - - b.HasKey("VehicleId"); - - b.HasIndex("CustomerId"); - - b.ToTable("Vehicles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("Appointments") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany() - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Appointments") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Service"); - - b.Navigation("ServiceCenter"); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("BorderPoints") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Documents") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Invoices") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.HasOne("Vpassbackend.Models.Invoice", "Invoice") - .WithMany("PaymentLogs") - .HasForeignKey("InvoiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Invoice"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("CheckInPoints") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("ServiceCenterServices") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("ServiceCenterServices") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Service"); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.HasOne("Vpassbackend.Models.UserRole", "UserRole") - .WithMany() - .HasForeignKey("UserRoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("UserRole"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Navigation("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Navigation("Appointments"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Navigation("CheckInPoints"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Navigation("Appointments"); - - b.Navigation("BorderPoints"); - - b.Navigation("Documents"); - - b.Navigation("Invoices"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.cs b/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.cs deleted file mode 100644 index 1acea82..0000000 --- a/Vpassbackend/Migrations/20250710161221_UpdateAppointmentModel.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class UpdateAppointmentModel : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "AppointmentPrice", - table: "Appointments", - type: "decimal(10,2)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Station_id", - table: "Appointments", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Appointments_Station_id", - table: "Appointments", - column: "Station_id"); - - migrationBuilder.AddForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments", - column: "Station_id", - principalTable: "ServiceCenters", - principalColumn: "Station_id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments"); - - migrationBuilder.DropIndex( - name: "IX_Appointments_Station_id", - table: "Appointments"); - - migrationBuilder.DropColumn( - name: "AppointmentPrice", - table: "Appointments"); - - migrationBuilder.DropColumn( - name: "Station_id", - table: "Appointments"); - } - } -} diff --git a/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.Designer.cs b/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.Designer.cs deleted file mode 100644 index bb66cce..0000000 --- a/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.Designer.cs +++ /dev/null @@ -1,636 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710161540_UpdateAppointmentRelationships")] - partial class UpdateAppointmentRelationships - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.18") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.Property("AppointmentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("AppointmentId")); - - b.Property("AppointmentDate") - .HasColumnType("datetime2"); - - b.Property("AppointmentPrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("AppointmentId"); - - b.HasIndex("CustomerId"); - - b.HasIndex("ServiceId"); - - b.HasIndex("Station_id"); - - b.HasIndex("VehicleId"); - - b.ToTable("Appointments"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.Property("PointId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("PointId")); - - b.Property("CheckDate") - .HasColumnType("datetime2"); - - b.Property("CheckPoint") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("EntryPoint") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("PointId"); - - b.HasIndex("VehicleId"); - - b.ToTable("BorderPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Customer", b => - { - b.Property("CustomerId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId")); - - b.Property("Address") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("NIC") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PhoneNumber") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("CustomerId"); - - b.ToTable("Customers"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.Property("DocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("DocumentId")); - - b.Property("DocumentType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ExpiryDate") - .HasColumnType("datetime2"); - - b.Property("FilePath") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("UploadDate") - .HasColumnType("datetime2"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("DocumentId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Documents"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Property("InvoiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("InvoiceId")); - - b.Property("InvoiceDate") - .HasColumnType("datetime2"); - - b.Property("TotalCost") - .HasColumnType("decimal(10, 2)"); - - b.Property("VehicleId") - .HasColumnType("int"); - - b.HasKey("InvoiceId"); - - b.HasIndex("VehicleId"); - - b.ToTable("Invoices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.Property("LogId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("LogId")); - - b.Property("InvoiceId") - .HasColumnType("int"); - - b.Property("PaymentDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.HasKey("LogId"); - - b.HasIndex("InvoiceId"); - - b.ToTable("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Property("ServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceId")); - - b.Property("BasePrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("Category") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Description") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("LoyaltyPoints") - .HasColumnType("int"); - - b.Property("ServiceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.HasKey("ServiceId"); - - b.ToTable("Services"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Property("Station_id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Station_id")); - - b.Property("Address") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("Email") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OwnerName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegisterationNumber") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Station_name") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("Station_status") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Telephone") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("VATNumber") - .HasMaxLength(15) - .HasColumnType("nvarchar(15)"); - - b.HasKey("Station_id"); - - b.ToTable("ServiceCenters"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.Property("StationId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("StationId")); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("StationId"); - - b.HasIndex("Station_id"); - - b.ToTable("ServiceCenterCheckInPoints"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.Property("ServiceCenterServiceId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceCenterServiceId")); - - b.Property("CustomPrice") - .HasColumnType("decimal(10, 2)"); - - b.Property("IsAvailable") - .HasColumnType("bit"); - - b.Property("Notes") - .HasMaxLength(255) - .HasColumnType("nvarchar(255)"); - - b.Property("ServiceId") - .HasColumnType("int"); - - b.Property("Station_id") - .HasColumnType("int"); - - b.HasKey("ServiceCenterServiceId"); - - b.HasIndex("Station_id"); - - b.HasIndex("ServiceId", "Station_id") - .IsUnique(); - - b.ToTable("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserId")); - - b.Property("Email") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Password") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UserRoleId") - .HasColumnType("int"); - - b.HasKey("UserId"); - - b.HasIndex("UserRoleId"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Vpassbackend.Models.UserRole", b => - { - b.Property("UserRoleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UserRoleId")); - - b.Property("UserRoleName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("UserRoleId"); - - b.ToTable("UserRoles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Property("VehicleId") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("VehicleId")); - - b.Property("Brand") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ChassisNumber") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("CustomerId") - .HasColumnType("int"); - - b.Property("Fuel") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Mileage") - .HasColumnType("int"); - - b.Property("Model") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("RegistrationNumber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasColumnType("int"); - - b.HasKey("VehicleId"); - - b.HasIndex("CustomerId"); - - b.ToTable("Vehicles"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Appointment", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("Appointments") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany() - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Appointments") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - - b.Navigation("Customer"); - - b.Navigation("Service"); - - b.Navigation("ServiceCenter"); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.BorderPoint", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("BorderPoints") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Document", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Documents") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") - .WithMany("Invoices") - .HasForeignKey("VehicleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Vehicle"); - }); - - modelBuilder.Entity("Vpassbackend.Models.PaymentLog", b => - { - b.HasOne("Vpassbackend.Models.Invoice", "Invoice") - .WithMany("PaymentLogs") - .HasForeignKey("InvoiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Invoice"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterCheckInPoint", b => - { - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("CheckInPoints") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenterService", b => - { - b.HasOne("Vpassbackend.Models.Service", "Service") - .WithMany("ServiceCenterServices") - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Vpassbackend.Models.ServiceCenter", "ServiceCenter") - .WithMany("ServiceCenterServices") - .HasForeignKey("Station_id") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Service"); - - b.Navigation("ServiceCenter"); - }); - - modelBuilder.Entity("Vpassbackend.Models.User", b => - { - b.HasOne("Vpassbackend.Models.UserRole", "UserRole") - .WithMany() - .HasForeignKey("UserRoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("UserRole"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.HasOne("Vpassbackend.Models.Customer", "Customer") - .WithMany() - .HasForeignKey("CustomerId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Customer"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Invoice", b => - { - b.Navigation("PaymentLogs"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Service", b => - { - b.Navigation("Appointments"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => - { - b.Navigation("CheckInPoints"); - - b.Navigation("ServiceCenterServices"); - }); - - modelBuilder.Entity("Vpassbackend.Models.Vehicle", b => - { - b.Navigation("Appointments"); - - b.Navigation("BorderPoints"); - - b.Navigation("Documents"); - - b.Navigation("Invoices"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.cs b/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.cs deleted file mode 100644 index 12bfd42..0000000 --- a/Vpassbackend/Migrations/20250710161540_UpdateAppointmentRelationships.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class UpdateAppointmentRelationships : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments"); - - migrationBuilder.AddForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments", - column: "Station_id", - principalTable: "ServiceCenters", - principalColumn: "Station_id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments"); - - migrationBuilder.AddForeignKey( - name: "FK_Appointments_ServiceCenters_Station_id", - table: "Appointments", - column: "Station_id", - principalTable: "ServiceCenters", - principalColumn: "Station_id", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.cs b/Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.cs deleted file mode 100644 index 31dacc8..0000000 --- a/Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class AddVehicleServiceHistory : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "VehicleServiceHistories", - columns: table => new - { - ServiceHistoryId = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - VehicleId = table.Column(type: "int", nullable: false), - ServiceId = table.Column(type: "int", nullable: false), - ServiceCenterId = table.Column(type: "int", nullable: true), - ServiceDate = table.Column(type: "datetime2", nullable: false), - ServiceCost = table.Column(type: "decimal(10,2)", nullable: false), - Mileage = table.Column(type: "int", nullable: true), - Notes = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - IsVerified = table.Column(type: "bit", nullable: false), - ExternalServiceCenterName = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), - ReceiptDocumentPath = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_VehicleServiceHistories", x => x.ServiceHistoryId); - table.ForeignKey( - name: "FK_VehicleServiceHistories_ServiceCenters_ServiceCenterId", - column: x => x.ServiceCenterId, - principalTable: "ServiceCenters", - principalColumn: "Station_id"); - table.ForeignKey( - name: "FK_VehicleServiceHistories_Services_ServiceId", - column: x => x.ServiceId, - principalTable: "Services", - principalColumn: "ServiceId", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_VehicleServiceHistories_Vehicles_VehicleId", - column: x => x.VehicleId, - principalTable: "Vehicles", - principalColumn: "VehicleId", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_VehicleServiceHistories_ServiceCenterId", - table: "VehicleServiceHistories", - column: "ServiceCenterId"); - - migrationBuilder.CreateIndex( - name: "IX_VehicleServiceHistories_ServiceId", - table: "VehicleServiceHistories", - column: "ServiceId"); - - migrationBuilder.CreateIndex( - name: "IX_VehicleServiceHistories_VehicleId", - table: "VehicleServiceHistories", - column: "VehicleId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "VehicleServiceHistories"); - } - } -} diff --git a/Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.cs b/Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.cs deleted file mode 100644 index e6304dd..0000000 --- a/Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class UpdateVehicleServiceHistoryToUseTextBasedService : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_VehicleServiceHistories_Services_ServiceId", - table: "VehicleServiceHistories"); - - migrationBuilder.DropIndex( - name: "IX_VehicleServiceHistories_ServiceId", - table: "VehicleServiceHistories"); - - migrationBuilder.DropColumn( - name: "ServiceId", - table: "VehicleServiceHistories"); - - migrationBuilder.RenameColumn( - name: "ServiceCost", - table: "VehicleServiceHistories", - newName: "Cost"); - - migrationBuilder.RenameColumn( - name: "Notes", - table: "VehicleServiceHistories", - newName: "Description"); - - migrationBuilder.AddColumn( - name: "ServiceType", - table: "VehicleServiceHistories", - type: "nvarchar(100)", - maxLength: 100, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ServicedByUserId", - table: "VehicleServiceHistories", - type: "int", - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_VehicleServiceHistories_ServicedByUserId", - table: "VehicleServiceHistories", - column: "ServicedByUserId"); - - migrationBuilder.AddForeignKey( - name: "FK_VehicleServiceHistories_Users_ServicedByUserId", - table: "VehicleServiceHistories", - column: "ServicedByUserId", - principalTable: "Users", - principalColumn: "UserId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_VehicleServiceHistories_Users_ServicedByUserId", - table: "VehicleServiceHistories"); - - migrationBuilder.DropIndex( - name: "IX_VehicleServiceHistories_ServicedByUserId", - table: "VehicleServiceHistories"); - - migrationBuilder.DropColumn( - name: "ServiceType", - table: "VehicleServiceHistories"); - - migrationBuilder.DropColumn( - name: "ServicedByUserId", - table: "VehicleServiceHistories"); - - migrationBuilder.RenameColumn( - name: "Description", - table: "VehicleServiceHistories", - newName: "Notes"); - - migrationBuilder.RenameColumn( - name: "Cost", - table: "VehicleServiceHistories", - newName: "ServiceCost"); - - migrationBuilder.AddColumn( - name: "ServiceId", - table: "VehicleServiceHistories", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_VehicleServiceHistories_ServiceId", - table: "VehicleServiceHistories", - column: "ServiceId"); - - migrationBuilder.AddForeignKey( - name: "FK_VehicleServiceHistories_Services_ServiceId", - table: "VehicleServiceHistories", - column: "ServiceId", - principalTable: "Services", - principalColumn: "ServiceId", - onDelete: ReferentialAction.Cascade); - } - } -} diff --git a/Vpassbackend/Migrations/20250710190000_AddServiceReminders.Designer.cs b/Vpassbackend/Migrations/20250710190000_AddServiceReminders.Designer.cs deleted file mode 100644 index 283987a..0000000 --- a/Vpassbackend/Migrations/20250710190000_AddServiceReminders.Designer.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Vpassbackend.Data; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710190000_AddServiceReminders")] - partial class AddServiceReminders - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "7.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - // Model content not included for brevity - // The DbContext will automatically populate this when migrations are run -#pragma warning restore 612, 618 - } - } -} diff --git a/Vpassbackend/Migrations/20250710190000_AddServiceReminders.cs b/Vpassbackend/Migrations/20250710190000_AddServiceReminders.cs deleted file mode 100644 index b4ff318..0000000 --- a/Vpassbackend/Migrations/20250710190000_AddServiceReminders.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class AddServiceReminders : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "ServiceReminders", - columns: table => new - { - ServiceReminderId = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - VehicleId = table.Column(type: "int", nullable: false), - ServiceId = table.Column(type: "int", nullable: false), - ReminderDate = table.Column(type: "datetime2", nullable: false), - IntervalMonths = table.Column(type: "int", nullable: false), - NotifyBeforeDays = table.Column(type: "int", nullable: false), - Notes = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), - IsActive = table.Column(type: "bit", nullable: false), - CreatedAt = table.Column(type: "datetime2", nullable: false), - UpdatedAt = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ServiceReminders", x => x.ServiceReminderId); - table.ForeignKey( - name: "FK_ServiceReminders_Services_ServiceId", - column: x => x.ServiceId, - principalTable: "Services", - principalColumn: "ServiceId", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_ServiceReminders_Vehicles_VehicleId", - column: x => x.VehicleId, - principalTable: "Vehicles", - principalColumn: "VehicleId", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_ServiceReminders_ServiceId", - table: "ServiceReminders", - column: "ServiceId"); - - migrationBuilder.CreateIndex( - name: "IX_ServiceReminders_VehicleId", - table: "ServiceReminders", - column: "VehicleId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ServiceReminders"); - } - } -} diff --git a/Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.cs b/Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.cs deleted file mode 100644 index 812e999..0000000 --- a/Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class AddOtpFieldsToCustomer : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "IsEmailVerified", - table: "Customers", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "OtpCode", - table: "Customers", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OtpExpiry", - table: "Customers", - type: "datetime2", - nullable: true); - - migrationBuilder.CreateTable( - name: "ServiceReminders", - columns: table => new - { - ServiceReminderId = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - VehicleId = table.Column(type: "int", nullable: false), - ServiceId = table.Column(type: "int", nullable: false), - ReminderDate = table.Column(type: "datetime2", nullable: false), - IntervalMonths = table.Column(type: "int", nullable: false), - NotifyBeforeDays = table.Column(type: "int", nullable: false), - Notes = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), - IsActive = table.Column(type: "bit", nullable: false), - CreatedAt = table.Column(type: "datetime2", nullable: false), - UpdatedAt = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ServiceReminders", x => x.ServiceReminderId); - table.ForeignKey( - name: "FK_ServiceReminders_Services_ServiceId", - column: x => x.ServiceId, - principalTable: "Services", - principalColumn: "ServiceId", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_ServiceReminders_Vehicles_VehicleId", - column: x => x.VehicleId, - principalTable: "Vehicles", - principalColumn: "VehicleId", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_ServiceReminders_ServiceId", - table: "ServiceReminders", - column: "ServiceId"); - - migrationBuilder.CreateIndex( - name: "IX_ServiceReminders_VehicleId", - table: "ServiceReminders", - column: "VehicleId"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ServiceReminders"); - - migrationBuilder.DropColumn( - name: "IsEmailVerified", - table: "Customers"); - - migrationBuilder.DropColumn( - name: "OtpCode", - table: "Customers"); - - migrationBuilder.DropColumn( - name: "OtpExpiry", - table: "Customers"); - } - } -} diff --git a/Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.cs b/Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.cs deleted file mode 100644 index a5cf901..0000000 --- a/Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Vpassbackend.Migrations -{ - /// - public partial class AddEmergencyCallCenter : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "EmergencyCallCenters", - columns: table => new - { - CenterId = table.Column(type: "int", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Address = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: false), - RegistrationNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_EmergencyCallCenters", x => x.CenterId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "EmergencyCallCenters"); - } - } -} diff --git a/Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.Designer.cs b/Vpassbackend/Migrations/20250711060932_InitialCreate.Designer.cs similarity index 99% rename from Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.Designer.cs rename to Vpassbackend/Migrations/20250711060932_InitialCreate.Designer.cs index 6852020..ffe158c 100644 --- a/Vpassbackend/Migrations/20250711030827_AddEmergencyCallCenter.Designer.cs +++ b/Vpassbackend/Migrations/20250711060932_InitialCreate.Designer.cs @@ -12,8 +12,8 @@ namespace Vpassbackend.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20250711030827_AddEmergencyCallCenter")] - partial class AddEmergencyCallCenter + [Migration("20250711060932_InitialCreate")] + partial class InitialCreate { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) diff --git a/Vpassbackend/Migrations/20250709065437_InitialCreate.cs b/Vpassbackend/Migrations/20250711060932_InitialCreate.cs similarity index 65% rename from Vpassbackend/Migrations/20250709065437_InitialCreate.cs rename to Vpassbackend/Migrations/20250711060932_InitialCreate.cs index 653ce5f..606a694 100644 --- a/Vpassbackend/Migrations/20250709065437_InitialCreate.cs +++ b/Vpassbackend/Migrations/20250711060932_InitialCreate.cs @@ -24,13 +24,32 @@ protected override void Up(MigrationBuilder migrationBuilder) PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), Password = table.Column(type: "nvarchar(max)", nullable: false), NIC = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), - LoyaltyPoints = table.Column(type: "int", nullable: false) + LoyaltyPoints = table.Column(type: "int", nullable: false), + IsEmailVerified = table.Column(type: "bit", nullable: false), + OtpCode = table.Column(type: "nvarchar(max)", nullable: true), + OtpExpiry = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Customers", x => x.CustomerId); }); + migrationBuilder.CreateTable( + name: "EmergencyCallCenters", + columns: table => new + { + CenterId = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Address = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: false), + RegistrationNumber = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + PhoneNumber = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_EmergencyCallCenters", x => x.CenterId); + }); + migrationBuilder.CreateTable( name: "ServiceCenters", columns: table => new @@ -51,6 +70,23 @@ protected override void Up(MigrationBuilder migrationBuilder) table.PrimaryKey("PK_ServiceCenters", x => x.Station_id); }); + migrationBuilder.CreateTable( + name: "Services", + columns: table => new + { + ServiceId = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ServiceName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Description = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), + BasePrice = table.Column(type: "decimal(10,2)", nullable: true), + LoyaltyPoints = table.Column(type: "int", nullable: true), + Category = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Services", x => x.ServiceId); + }); + migrationBuilder.CreateTable( name: "UserRoles", columns: table => new @@ -111,26 +147,32 @@ protected override void Up(MigrationBuilder migrationBuilder) }); migrationBuilder.CreateTable( - name: "Services", + name: "ServiceCenterServices", columns: table => new { - ServiceId = table.Column(type: "int", nullable: false) + ServiceCenterServiceId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - ServiceName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Description = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), - BasePrice = table.Column(type: "decimal(10,2)", nullable: true), - LoyaltyPoints = table.Column(type: "int", nullable: true), - Station_id = table.Column(type: "int", nullable: false) + Station_id = table.Column(type: "int", nullable: false), + ServiceId = table.Column(type: "int", nullable: false), + CustomPrice = table.Column(type: "decimal(10,2)", nullable: true), + IsAvailable = table.Column(type: "bit", nullable: false), + Notes = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true) }, constraints: table => { - table.PrimaryKey("PK_Services", x => x.ServiceId); + table.PrimaryKey("PK_ServiceCenterServices", x => x.ServiceCenterServiceId); table.ForeignKey( - name: "FK_Services_ServiceCenters_Station_id", + name: "FK_ServiceCenterServices_ServiceCenters_Station_id", column: x => x.Station_id, principalTable: "ServiceCenters", principalColumn: "Station_id", onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_ServiceCenterServices_Services_ServiceId", + column: x => x.ServiceId, + principalTable: "Services", + principalColumn: "ServiceId", + onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( @@ -156,6 +198,48 @@ protected override void Up(MigrationBuilder migrationBuilder) onDelete: ReferentialAction.Cascade); }); + migrationBuilder.CreateTable( + name: "Appointments", + columns: table => new + { + AppointmentId = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + VehicleId = table.Column(type: "int", nullable: false), + ServiceId = table.Column(type: "int", nullable: false), + Station_id = table.Column(type: "int", nullable: false), + CustomerId = table.Column(type: "int", nullable: false), + AppointmentDate = table.Column(type: "datetime2", nullable: true), + Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Type = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), + Description = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), + AppointmentPrice = table.Column(type: "decimal(10,2)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Appointments", x => x.AppointmentId); + table.ForeignKey( + name: "FK_Appointments_Customers_CustomerId", + column: x => x.CustomerId, + principalTable: "Customers", + principalColumn: "CustomerId", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Appointments_ServiceCenters_Station_id", + column: x => x.Station_id, + principalTable: "ServiceCenters", + principalColumn: "Station_id"); + table.ForeignKey( + name: "FK_Appointments_Services_ServiceId", + column: x => x.ServiceId, + principalTable: "Services", + principalColumn: "ServiceId"); + table.ForeignKey( + name: "FK_Appointments_Vehicles_VehicleId", + column: x => x.VehicleId, + principalTable: "Vehicles", + principalColumn: "VehicleId"); + }); + migrationBuilder.CreateTable( name: "BorderPoints", columns: table => new @@ -223,38 +307,75 @@ protected override void Up(MigrationBuilder migrationBuilder) }); migrationBuilder.CreateTable( - name: "Appointments", + name: "ServiceReminders", columns: table => new { - AppointmentId = table.Column(type: "int", nullable: false) + ServiceReminderId = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), VehicleId = table.Column(type: "int", nullable: false), ServiceId = table.Column(type: "int", nullable: false), - CustomerId = table.Column(type: "int", nullable: false), - AppointmentDate = table.Column(type: "datetime2", nullable: true), - Status = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Type = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true), - Description = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true) + ReminderDate = table.Column(type: "datetime2", nullable: false), + IntervalMonths = table.Column(type: "int", nullable: false), + NotifyBeforeDays = table.Column(type: "int", nullable: false), + Notes = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true), + IsActive = table.Column(type: "bit", nullable: false), + CreatedAt = table.Column(type: "datetime2", nullable: false), + UpdatedAt = table.Column(type: "datetime2", nullable: true) }, constraints: table => { - table.PrimaryKey("PK_Appointments", x => x.AppointmentId); + table.PrimaryKey("PK_ServiceReminders", x => x.ServiceReminderId); table.ForeignKey( - name: "FK_Appointments_Customers_CustomerId", - column: x => x.CustomerId, - principalTable: "Customers", - principalColumn: "CustomerId", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_Appointments_Services_ServiceId", + name: "FK_ServiceReminders_Services_ServiceId", column: x => x.ServiceId, principalTable: "Services", - principalColumn: "ServiceId"); + principalColumn: "ServiceId", + onDelete: ReferentialAction.Cascade); table.ForeignKey( - name: "FK_Appointments_Vehicles_VehicleId", + name: "FK_ServiceReminders_Vehicles_VehicleId", column: x => x.VehicleId, principalTable: "Vehicles", - principalColumn: "VehicleId"); + principalColumn: "VehicleId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "VehicleServiceHistories", + columns: table => new + { + ServiceHistoryId = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + VehicleId = table.Column(type: "int", nullable: false), + ServiceType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), + Description = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + Cost = table.Column(type: "decimal(10,2)", nullable: false), + ServiceCenterId = table.Column(type: "int", nullable: true), + ServicedByUserId = table.Column(type: "int", nullable: true), + ServiceDate = table.Column(type: "datetime2", nullable: false), + Mileage = table.Column(type: "int", nullable: true), + IsVerified = table.Column(type: "bit", nullable: false), + ExternalServiceCenterName = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: true), + ReceiptDocumentPath = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_VehicleServiceHistories", x => x.ServiceHistoryId); + table.ForeignKey( + name: "FK_VehicleServiceHistories_ServiceCenters_ServiceCenterId", + column: x => x.ServiceCenterId, + principalTable: "ServiceCenters", + principalColumn: "Station_id"); + table.ForeignKey( + name: "FK_VehicleServiceHistories_Users_ServicedByUserId", + column: x => x.ServicedByUserId, + principalTable: "Users", + principalColumn: "UserId"); + table.ForeignKey( + name: "FK_VehicleServiceHistories_Vehicles_VehicleId", + column: x => x.VehicleId, + principalTable: "Vehicles", + principalColumn: "VehicleId", + onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateTable( @@ -288,6 +409,11 @@ protected override void Up(MigrationBuilder migrationBuilder) table: "Appointments", column: "ServiceId"); + migrationBuilder.CreateIndex( + name: "IX_Appointments_Station_id", + table: "Appointments", + column: "Station_id"); + migrationBuilder.CreateIndex( name: "IX_Appointments_VehicleId", table: "Appointments", @@ -319,10 +445,26 @@ protected override void Up(MigrationBuilder migrationBuilder) column: "Station_id"); migrationBuilder.CreateIndex( - name: "IX_Services_Station_id", - table: "Services", + name: "IX_ServiceCenterServices_ServiceId_Station_id", + table: "ServiceCenterServices", + columns: new[] { "ServiceId", "Station_id" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_ServiceCenterServices_Station_id", + table: "ServiceCenterServices", column: "Station_id"); + migrationBuilder.CreateIndex( + name: "IX_ServiceReminders_ServiceId", + table: "ServiceReminders", + column: "ServiceId"); + + migrationBuilder.CreateIndex( + name: "IX_ServiceReminders_VehicleId", + table: "ServiceReminders", + column: "VehicleId"); + migrationBuilder.CreateIndex( name: "IX_Users_UserRoleId", table: "Users", @@ -332,6 +474,21 @@ protected override void Up(MigrationBuilder migrationBuilder) name: "IX_Vehicles_CustomerId", table: "Vehicles", column: "CustomerId"); + + migrationBuilder.CreateIndex( + name: "IX_VehicleServiceHistories_ServiceCenterId", + table: "VehicleServiceHistories", + column: "ServiceCenterId"); + + migrationBuilder.CreateIndex( + name: "IX_VehicleServiceHistories_ServicedByUserId", + table: "VehicleServiceHistories", + column: "ServicedByUserId"); + + migrationBuilder.CreateIndex( + name: "IX_VehicleServiceHistories_VehicleId", + table: "VehicleServiceHistories", + column: "VehicleId"); } /// @@ -346,6 +503,9 @@ protected override void Down(MigrationBuilder migrationBuilder) migrationBuilder.DropTable( name: "Documents"); + migrationBuilder.DropTable( + name: "EmergencyCallCenters"); + migrationBuilder.DropTable( name: "PaymentLogs"); @@ -353,23 +513,32 @@ protected override void Down(MigrationBuilder migrationBuilder) name: "ServiceCenterCheckInPoints"); migrationBuilder.DropTable( - name: "Users"); + name: "ServiceCenterServices"); migrationBuilder.DropTable( - name: "Services"); + name: "ServiceReminders"); + + migrationBuilder.DropTable( + name: "VehicleServiceHistories"); migrationBuilder.DropTable( name: "Invoices"); migrationBuilder.DropTable( - name: "UserRoles"); + name: "Services"); migrationBuilder.DropTable( name: "ServiceCenters"); + migrationBuilder.DropTable( + name: "Users"); + migrationBuilder.DropTable( name: "Vehicles"); + migrationBuilder.DropTable( + name: "UserRoles"); + migrationBuilder.DropTable( name: "Customers"); } diff --git a/Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.Designer.cs b/Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.Designer.cs similarity index 90% rename from Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.Designer.cs rename to Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.Designer.cs index aab85b4..cb92d2d 100644 --- a/Vpassbackend/Migrations/20250710194024_AddOtpFieldsToCustomer.Designer.cs +++ b/Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.Designer.cs @@ -12,8 +12,8 @@ namespace Vpassbackend.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710194024_AddOtpFieldsToCustomer")] - partial class AddOtpFieldsToCustomer + [Migration("20250711072041_AddClosureScheduleAndServiceAvailability")] + partial class AddClosureScheduleAndServiceAvailability { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -105,6 +105,29 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("BorderPoints"); }); + modelBuilder.Entity("Vpassbackend.Models.ClosureSchedule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ClosureSchedules"); + }); + modelBuilder.Entity("Vpassbackend.Models.Customer", b => { b.Property("CustomerId") @@ -196,6 +219,39 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Documents"); }); + modelBuilder.Entity("Vpassbackend.Models.EmergencyCallCenter", b => + { + b.Property("CenterId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CenterId")); + + b.Property("Address") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("nvarchar(300)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("PhoneNumber") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("RegistrationNumber") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.HasKey("CenterId"); + + b.ToTable("EmergencyCallCenters"); + }); + modelBuilder.Entity("Vpassbackend.Models.Invoice", b => { b.Property("InvoiceId") @@ -277,6 +333,31 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Services"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceAvailability", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("IsAvailable") + .HasColumnType("bit"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ServiceAvailabilities"); + }); + modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => { b.Property("Station_id") diff --git a/Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.cs b/Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.cs new file mode 100644 index 0000000..8d74fdc --- /dev/null +++ b/Vpassbackend/Migrations/20250711072041_AddClosureScheduleAndServiceAvailability.cs @@ -0,0 +1,55 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Vpassbackend.Migrations +{ + /// + public partial class AddClosureScheduleAndServiceAvailability : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "ClosureSchedules", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ServiceCenterId = table.Column(type: "int", nullable: false), + WeekNumber = table.Column(type: "int", nullable: false), + Day = table.Column(type: "nvarchar(max)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ClosureSchedules", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ServiceAvailabilities", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ServiceCenterId = table.Column(type: "int", nullable: false), + ServiceId = table.Column(type: "int", nullable: false), + WeekNumber = table.Column(type: "int", nullable: false), + IsAvailable = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ServiceAvailabilities", x => x.Id); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ClosureSchedules"); + + migrationBuilder.DropTable( + name: "ServiceAvailabilities"); + } + } +} diff --git a/Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.Designer.cs b/Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.Designer.cs similarity index 81% rename from Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.Designer.cs rename to Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.Designer.cs index f5c9df1..00034b3 100644 --- a/Vpassbackend/Migrations/20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService.Designer.cs +++ b/Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.Designer.cs @@ -12,8 +12,8 @@ namespace Vpassbackend.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710174320_UpdateVehicleServiceHistoryToUseTextBasedService")] - partial class UpdateVehicleServiceHistoryToUseTextBasedService + [Migration("20250711090724_AddDayToServiceAvailability")] + partial class AddDayToServiceAvailability { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -105,6 +105,29 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("BorderPoints"); }); + modelBuilder.Entity("Vpassbackend.Models.ClosureSchedule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ClosureSchedules"); + }); + modelBuilder.Entity("Vpassbackend.Models.Customer", b => { b.Property("CustomerId") @@ -128,6 +151,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasMaxLength(100) .HasColumnType("nvarchar(100)"); + b.Property("IsEmailVerified") + .HasColumnType("bit"); + b.Property("LastName") .IsRequired() .HasMaxLength(100) @@ -141,6 +167,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasMaxLength(20) .HasColumnType("nvarchar(20)"); + b.Property("OtpCode") + .HasColumnType("nvarchar(max)"); + + b.Property("OtpExpiry") + .HasColumnType("datetime2"); + b.Property("Password") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -187,6 +219,39 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Documents"); }); + modelBuilder.Entity("Vpassbackend.Models.EmergencyCallCenter", b => + { + b.Property("CenterId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CenterId")); + + b.Property("Address") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("nvarchar(300)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("PhoneNumber") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("RegistrationNumber") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.HasKey("CenterId"); + + b.ToTable("EmergencyCallCenters"); + }); + modelBuilder.Entity("Vpassbackend.Models.Invoice", b => { b.Property("InvoiceId") @@ -268,6 +333,34 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Services"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceAvailability", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAvailable") + .HasColumnType("bit"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ServiceAvailabilities"); + }); + modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => { b.Property("Station_id") @@ -370,6 +463,51 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("ServiceCenterServices"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceReminder", b => + { + b.Property("ServiceReminderId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceReminderId")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("IntervalMonths") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Notes") + .HasMaxLength(255) + .HasColumnType("nvarchar(255)"); + + b.Property("NotifyBeforeDays") + .HasColumnType("int"); + + b.Property("ReminderDate") + .HasColumnType("datetime2"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("VehicleId") + .HasColumnType("int"); + + b.HasKey("ServiceReminderId"); + + b.HasIndex("ServiceId"); + + b.HasIndex("VehicleId"); + + b.ToTable("ServiceReminders"); + }); + modelBuilder.Entity("Vpassbackend.Models.User", b => { b.Property("UserId") @@ -636,6 +774,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("ServiceCenter"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceReminder", b => + { + b.HasOne("Vpassbackend.Models.Service", "Service") + .WithMany("ServiceReminders") + .HasForeignKey("ServiceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") + .WithMany("ServiceReminders") + .HasForeignKey("VehicleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Service"); + + b.Navigation("Vehicle"); + }); + modelBuilder.Entity("Vpassbackend.Models.User", b => { b.HasOne("Vpassbackend.Models.UserRole", "UserRole") @@ -693,6 +850,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Appointments"); b.Navigation("ServiceCenterServices"); + + b.Navigation("ServiceReminders"); }); modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => @@ -713,6 +872,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Invoices"); b.Navigation("ServiceHistory"); + + b.Navigation("ServiceReminders"); }); #pragma warning restore 612, 618 } diff --git a/Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.cs b/Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.cs new file mode 100644 index 0000000..f8a15fc --- /dev/null +++ b/Vpassbackend/Migrations/20250711090724_AddDayToServiceAvailability.cs @@ -0,0 +1,28 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Vpassbackend.Migrations +{ + /// + public partial class AddDayToServiceAvailability : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Day", + table: "ServiceAvailabilities", + type: "nvarchar(max)", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Day", + table: "ServiceAvailabilities"); + } + } +} diff --git a/Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.Designer.cs b/Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.Designer.cs similarity index 80% rename from Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.Designer.cs rename to Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.Designer.cs index 4a81255..3d1f73c 100644 --- a/Vpassbackend/Migrations/20250710170820_AddVehicleServiceHistory.Designer.cs +++ b/Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.Designer.cs @@ -12,8 +12,8 @@ namespace Vpassbackend.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20250710170820_AddVehicleServiceHistory")] - partial class AddVehicleServiceHistory + [Migration("20250711124807_AddServiceAvailabilityAndClosureSchedule")] + partial class AddServiceAvailabilityAndClosureSchedule { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) @@ -105,6 +105,29 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("BorderPoints"); }); + modelBuilder.Entity("Vpassbackend.Models.ClosureSchedule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ClosureSchedules"); + }); + modelBuilder.Entity("Vpassbackend.Models.Customer", b => { b.Property("CustomerId") @@ -128,6 +151,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasMaxLength(100) .HasColumnType("nvarchar(100)"); + b.Property("IsEmailVerified") + .HasColumnType("bit"); + b.Property("LastName") .IsRequired() .HasMaxLength(100) @@ -141,6 +167,12 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasMaxLength(20) .HasColumnType("nvarchar(20)"); + b.Property("OtpCode") + .HasColumnType("nvarchar(max)"); + + b.Property("OtpExpiry") + .HasColumnType("datetime2"); + b.Property("Password") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -187,6 +219,39 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Documents"); }); + modelBuilder.Entity("Vpassbackend.Models.EmergencyCallCenter", b => + { + b.Property("CenterId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CenterId")); + + b.Property("Address") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("nvarchar(300)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("PhoneNumber") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("RegistrationNumber") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.HasKey("CenterId"); + + b.ToTable("EmergencyCallCenters"); + }); + modelBuilder.Entity("Vpassbackend.Models.Invoice", b => { b.Property("InvoiceId") @@ -268,6 +333,34 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Services"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceAvailability", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAvailable") + .HasColumnType("bit"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ServiceAvailabilities"); + }); + modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => { b.Property("Station_id") @@ -370,6 +463,51 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("ServiceCenterServices"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceReminder", b => + { + b.Property("ServiceReminderId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceReminderId")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("IntervalMonths") + .HasColumnType("int"); + + b.Property("IsActive") + .HasColumnType("bit"); + + b.Property("Notes") + .HasMaxLength(255) + .HasColumnType("nvarchar(255)"); + + b.Property("NotifyBeforeDays") + .HasColumnType("int"); + + b.Property("ReminderDate") + .HasColumnType("datetime2"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("UpdatedAt") + .HasColumnType("datetime2"); + + b.Property("VehicleId") + .HasColumnType("int"); + + b.HasKey("ServiceReminderId"); + + b.HasIndex("ServiceId"); + + b.HasIndex("VehicleId"); + + b.ToTable("ServiceReminders"); + }); + modelBuilder.Entity("Vpassbackend.Models.User", b => { b.Property("UserId") @@ -478,6 +616,13 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServiceHistoryId")); + b.Property("Cost") + .HasColumnType("decimal(10, 2)"); + + b.Property("Description") + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + b.Property("ExternalServiceCenterName") .HasMaxLength(150) .HasColumnType("nvarchar(150)"); @@ -488,10 +633,6 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("Mileage") .HasColumnType("int"); - b.Property("Notes") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - b.Property("ReceiptDocumentPath") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); @@ -499,13 +640,15 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("ServiceCenterId") .HasColumnType("int"); - b.Property("ServiceCost") - .HasColumnType("decimal(10, 2)"); - b.Property("ServiceDate") .HasColumnType("datetime2"); - b.Property("ServiceId") + b.Property("ServiceType") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("ServicedByUserId") .HasColumnType("int"); b.Property("VehicleId") @@ -515,7 +658,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasIndex("ServiceCenterId"); - b.HasIndex("ServiceId"); + b.HasIndex("ServicedByUserId"); b.HasIndex("VehicleId"); @@ -631,6 +774,25 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("ServiceCenter"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceReminder", b => + { + b.HasOne("Vpassbackend.Models.Service", "Service") + .WithMany("ServiceReminders") + .HasForeignKey("ServiceId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") + .WithMany("ServiceReminders") + .HasForeignKey("VehicleId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Service"); + + b.Navigation("Vehicle"); + }); + modelBuilder.Entity("Vpassbackend.Models.User", b => { b.HasOne("Vpassbackend.Models.UserRole", "UserRole") @@ -660,11 +822,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .HasForeignKey("ServiceCenterId") .OnDelete(DeleteBehavior.NoAction); - b.HasOne("Vpassbackend.Models.Service", "Service") + b.HasOne("Vpassbackend.Models.User", "ServicedByUser") .WithMany() - .HasForeignKey("ServiceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); + .HasForeignKey("ServicedByUserId") + .OnDelete(DeleteBehavior.NoAction); b.HasOne("Vpassbackend.Models.Vehicle", "Vehicle") .WithMany("ServiceHistory") @@ -672,10 +833,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.Navigation("Service"); - b.Navigation("ServiceCenter"); + b.Navigation("ServicedByUser"); + b.Navigation("Vehicle"); }); @@ -689,6 +850,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Appointments"); b.Navigation("ServiceCenterServices"); + + b.Navigation("ServiceReminders"); }); modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => @@ -709,6 +872,8 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Invoices"); b.Navigation("ServiceHistory"); + + b.Navigation("ServiceReminders"); }); #pragma warning restore 612, 618 } diff --git a/Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.cs b/Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.cs similarity index 83% rename from Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.cs rename to Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.cs index 63eb781..a37d617 100644 --- a/Vpassbackend/Migrations/20250710153706_AddServiceCenterManagement.cs +++ b/Vpassbackend/Migrations/20250711124807_AddServiceAvailabilityAndClosureSchedule.cs @@ -5,7 +5,7 @@ namespace Vpassbackend.Migrations { /// - public partial class AddServiceCenterManagement : Migration + public partial class AddServiceAvailabilityAndClosureSchedule : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) diff --git a/Vpassbackend/Migrations/ApplicationDbContextModelSnapshot.cs b/Vpassbackend/Migrations/ApplicationDbContextModelSnapshot.cs index 1e9e455..867aabf 100644 --- a/Vpassbackend/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Vpassbackend/Migrations/ApplicationDbContextModelSnapshot.cs @@ -102,6 +102,29 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("BorderPoints"); }); + modelBuilder.Entity("Vpassbackend.Models.ClosureSchedule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ClosureSchedules"); + }); + modelBuilder.Entity("Vpassbackend.Models.Customer", b => { b.Property("CustomerId") @@ -307,6 +330,34 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Services"); }); + modelBuilder.Entity("Vpassbackend.Models.ServiceAvailability", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("Day") + .HasColumnType("nvarchar(max)"); + + b.Property("IsAvailable") + .HasColumnType("bit"); + + b.Property("ServiceCenterId") + .HasColumnType("int"); + + b.Property("ServiceId") + .HasColumnType("int"); + + b.Property("WeekNumber") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.ToTable("ServiceAvailabilities"); + }); + modelBuilder.Entity("Vpassbackend.Models.ServiceCenter", b => { b.Property("Station_id") diff --git a/Vpassbackend/Models/ClosureSchedule.cs b/Vpassbackend/Models/ClosureSchedule.cs new file mode 100644 index 0000000..31707b0 --- /dev/null +++ b/Vpassbackend/Models/ClosureSchedule.cs @@ -0,0 +1,10 @@ +namespace Vpassbackend.Models +{ + public class ClosureSchedule + { + public int Id { get; set; } + public int ServiceCenterId { get; set; } + public int WeekNumber { get; set; } + public string Day { get; set; } // e.g., "Monday" + } +} diff --git a/Vpassbackend/Models/ServiceAvailability.cs b/Vpassbackend/Models/ServiceAvailability.cs new file mode 100644 index 0000000..a516f1f --- /dev/null +++ b/Vpassbackend/Models/ServiceAvailability.cs @@ -0,0 +1,12 @@ +namespace Vpassbackend.Models +{ + public class ServiceAvailability + { + public int Id { get; set; } + public int ServiceCenterId { get; set; } + public int ServiceId { get; set; } + public int WeekNumber { get; set; } + public string? Day { get; set; } // e.g., "Monday" + public bool IsAvailable { get; set; } + } +} diff --git a/Vpassbackend/appsettings.json b/Vpassbackend/appsettings.json index b9ceca2..74dacb9 100644 --- a/Vpassbackend/appsettings.json +++ b/Vpassbackend/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=DESKTOP-976SUPD\\SQLEXPRESS;Connect Timeout=30;Database=VehiclePassportAppNew;Trusted_Connection=True;TrustServerCertificate=True;" + "DefaultConnection": "Server=THISHU\\SQLEXPRESS02;Connect Timeout=30;Database=VehiclePassportApp;Trusted_Connection=True;TrustServerCertificate=True;" }, "Jwt": { diff --git a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll index 3742fe2..d0bbfa9 100644 Binary files a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll and b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll differ diff --git a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe index b7809bb..9869a48 100644 Binary files a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe and b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe differ diff --git a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.pdb b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.pdb index 1e9a96a..a0fc22d 100644 Binary files a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.pdb and b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.pdb differ diff --git a/Vpassbackend/bin/Debug/net8.0/appsettings.json b/Vpassbackend/bin/Debug/net8.0/appsettings.json index b9ceca2..74dacb9 100644 --- a/Vpassbackend/bin/Debug/net8.0/appsettings.json +++ b/Vpassbackend/bin/Debug/net8.0/appsettings.json @@ -1,6 +1,6 @@ { "ConnectionStrings": { - "DefaultConnection": "Server=DESKTOP-976SUPD\\SQLEXPRESS;Connect Timeout=30;Database=VehiclePassportAppNew;Trusted_Connection=True;TrustServerCertificate=True;" + "DefaultConnection": "Server=THISHU\\SQLEXPRESS02;Connect Timeout=30;Database=VehiclePassportApp;Trusted_Connection=True;TrustServerCertificate=True;" }, "Jwt": { diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs index 7092eb7..c47e456 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs @@ -13,7 +13,7 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+e7e7f5cbbf1333ec7c12d59ad995134a5009503f")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9c6c061b38bb9ec8b170e872e36e360d60a970c1")] [assembly: System.Reflection.AssemblyProductAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyTitleAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache index 7793058..f30105b 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache @@ -1 +1 @@ -6f46b7850621218627525f80d8e1d9c9517f2b9ab47beaf0a9576b816bc2f1f2 +2f7e583ca45a02a95edfdfb4fcc7d09d02ff31ad990d2bd497dc130841e71c79 diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.GeneratedMSBuildEditorConfig.editorconfig b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.GeneratedMSBuildEditorConfig.editorconfig index b669497..6ce348b 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.GeneratedMSBuildEditorConfig.editorconfig +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.GeneratedMSBuildEditorConfig.editorconfig @@ -9,11 +9,11 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Vpassbackend build_property.RootNamespace = Vpassbackend -build_property.ProjectDir = D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend\ +build_property.ProjectDir = D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\ build_property.EnableComHosting = build_property.EnableGeneratedComInterfaceComImportInterop = build_property.RazorLangVersion = 8.0 build_property.SupportLocalizedComponentNames = build_property.GenerateRazorMetadataSourceChecksumAttributes = -build_property.MSBuildProjectDirectory = D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend +build_property.MSBuildProjectDirectory = D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend build_property._RazorSourceGeneratorDebug = diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.assets.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.assets.cache index 972a98b..f680f44 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.assets.cache and b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.assets.cache differ diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.AssemblyReference.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.AssemblyReference.cache index 46f8117..7eabdd6 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.AssemblyReference.cache and b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.AssemblyReference.cache differ diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.CoreCompileInputs.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.CoreCompileInputs.cache index 994bff7..8490a16 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.CoreCompileInputs.cache +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -f6a3e2e8cfea77b9dee2d73397a7014d7b00fe27091fff2d819c8171d9153810 +228458f3ca0954d9230a622c42c26bb759ae841382677bef1f8b6727b255c226 diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.FileListAbsolute.txt b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.FileListAbsolute.txt index bf3b4f1..be83a64 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.FileListAbsolute.txt +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.csproj.FileListAbsolute.txt @@ -296,3 +296,154 @@ D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\ D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.pdb D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.genruntimeconfig.cache D:\NeonCoders\VehicleAppBackend\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\ref\Vpassbackend.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\appsettings.Development.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Examples\add-service-history.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Examples\add-unverified-service-history.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Examples\add-verified-service-history.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\appsettings.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Vpassbackend.exe +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Vpassbackend.deps.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Vpassbackend.runtimeconfig.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Vpassbackend.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Vpassbackend.pdb +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Azure.Core.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Azure.Identity.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\BCrypt.Net-Next.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Humanizer.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.AspNetCore.OpenApi.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Bcl.AsyncInterfaces.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.CodeAnalysis.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.CodeAnalysis.CSharp.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.CodeAnalysis.CSharp.Workspaces.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.CodeAnalysis.Workspaces.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Data.SqlClient.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.Abstractions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.Design.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.Relational.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.EntityFrameworkCore.SqlServer.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.Caching.Memory.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.DependencyInjection.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.DependencyModel.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.Logging.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.Logging.Abstractions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Extensions.Options.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Identity.Client.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Identity.Client.Extensions.Msal.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.Abstractions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.JsonWebTokens.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.Logging.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.Protocols.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.IdentityModel.Tokens.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.OpenApi.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.SqlServer.Server.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Microsoft.Win32.SystemEvents.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Mono.TextTemplating.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Swashbuckle.AspNetCore.Swagger.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Swashbuckle.AspNetCore.SwaggerGen.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\Swashbuckle.AspNetCore.SwaggerUI.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.ClientModel.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.CodeDom.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Composition.AttributedModel.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Composition.Convention.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Composition.Hosting.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Composition.Runtime.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Composition.TypedParts.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Configuration.ConfigurationManager.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Drawing.Common.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Formats.Asn1.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.IdentityModel.Tokens.Jwt.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Memory.Data.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Runtime.Caching.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Security.Cryptography.ProtectedData.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Security.Permissions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\System.Windows.Extensions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\cs\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\de\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\es\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\fr\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\it\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ja\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ko\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pl\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pt-BR\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ru\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\tr\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hans\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hant\Microsoft.CodeAnalysis.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\cs\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\de\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\es\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\fr\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\it\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ja\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ko\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pl\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pt-BR\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ru\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\tr\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hans\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hant\Microsoft.CodeAnalysis.CSharp.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\cs\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\de\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\es\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\fr\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\it\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ja\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ko\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pl\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pt-BR\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ru\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\tr\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hans\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hant\Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\cs\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\de\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\es\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\fr\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\it\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ja\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ko\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pl\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\pt-BR\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\ru\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\tr\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hans\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\zh-Hant\Microsoft.CodeAnalysis.Workspaces.resources.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\unix\lib\net6.0\Microsoft.Data.SqlClient.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\Microsoft.Data.SqlClient.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win-arm64\native\Microsoft.Data.SqlClient.SNI.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win-x86\native\Microsoft.Data.SqlClient.SNI.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\Microsoft.Win32.SystemEvents.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\unix\lib\net6.0\System.Drawing.Common.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Drawing.Common.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Runtime.Caching.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Security.Cryptography.ProtectedData.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\bin\Debug\net8.0\runtimes\win\lib\net6.0\System.Windows.Extensions.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.csproj.AssemblyReference.cache +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.GeneratedMSBuildEditorConfig.editorconfig +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.AssemblyInfoInputs.cache +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.AssemblyInfo.cs +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.csproj.CoreCompileInputs.cache +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.MvcApplicationPartsAssemblyInfo.cs +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.MvcApplicationPartsAssemblyInfo.cache +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.sourcelink.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets.build.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets.development.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets\msbuild.Vpassbackend.Microsoft.AspNetCore.StaticWebAssets.props +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets\msbuild.build.Vpassbackend.props +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets\msbuild.buildMultiTargeting.Vpassbackend.props +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets\msbuild.buildTransitive.Vpassbackend.props +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\staticwebassets.pack.json +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\scopedcss\bundle\Vpassbackend.styles.css +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbac.3B05EFF0.Up2Date +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\refint\Vpassbackend.dll +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.pdb +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\Vpassbackend.genruntimeconfig.cache +D:\L2S2\Digital400_VPass\VehicleAppBackend\Vpassbackend\obj\Debug\net8.0\ref\Vpassbackend.dll diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.dll b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.dll index f52820c..df34355 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.dll and b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.dll differ diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.genruntimeconfig.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.genruntimeconfig.cache index c531511..9e2d2b5 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.genruntimeconfig.cache +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.genruntimeconfig.cache @@ -1 +1 @@ -837a49c71dd9f92b72ed68c7f740ddcdfc9ca22a8bd7a0260659d499e632179e +717dca4ba802a80b29832726aa44a5134a260881c0565b4fa6e18be90c9b11a8 diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.pdb b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.pdb index 1e9a96a..a0fc22d 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.pdb and b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.pdb differ diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.sourcelink.json b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.sourcelink.json index 31d5e5b..ddcb514 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.sourcelink.json +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.sourcelink.json @@ -1 +1 @@ -{"documents":{"D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\*":"https://raw.githubusercontent.com/NeonCoders-UoM/VehicleAppBackend/e7e7f5cbbf1333ec7c12d59ad995134a5009503f/*"}} \ No newline at end of file +{"documents":{"D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\*":"https://raw.githubusercontent.com/NeonCoders-UoM/VehicleAppBackend/9c6c061b38bb9ec8b170e872e36e360d60a970c1/*"}} \ No newline at end of file diff --git a/Vpassbackend/obj/Debug/net8.0/apphost.exe b/Vpassbackend/obj/Debug/net8.0/apphost.exe index 6c80671..68d7ac7 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/apphost.exe and b/Vpassbackend/obj/Debug/net8.0/apphost.exe differ diff --git a/Vpassbackend/obj/Debug/net8.0/ref/Vpassbackend.dll b/Vpassbackend/obj/Debug/net8.0/ref/Vpassbackend.dll index e6912f1..c98782e 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/ref/Vpassbackend.dll and b/Vpassbackend/obj/Debug/net8.0/ref/Vpassbackend.dll differ diff --git a/Vpassbackend/obj/Debug/net8.0/refint/Vpassbackend.dll b/Vpassbackend/obj/Debug/net8.0/refint/Vpassbackend.dll index e6912f1..c98782e 100644 Binary files a/Vpassbackend/obj/Debug/net8.0/refint/Vpassbackend.dll and b/Vpassbackend/obj/Debug/net8.0/refint/Vpassbackend.dll differ diff --git a/Vpassbackend/obj/Vpassbackend.csproj.nuget.dgspec.json b/Vpassbackend/obj/Vpassbackend.csproj.nuget.dgspec.json index 4e7dc82..93da7a2 100644 --- a/Vpassbackend/obj/Vpassbackend.csproj.nuget.dgspec.json +++ b/Vpassbackend/obj/Vpassbackend.csproj.nuget.dgspec.json @@ -1,23 +1,23 @@ { "format": 1, "restore": { - "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj": {} + "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj": {} }, "projects": { - "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj": { + "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", + "projectUniqueName": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", "projectName": "Vpassbackend", - "projectPath": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", - "packagesPath": "C:\\Users\\Hello\\.nuget\\packages\\", - "outputPath": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\obj\\", + "projectPath": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", + "packagesPath": "C:\\Users\\LENOVO\\.nuget\\packages\\", + "outputPath": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\Hello\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\LENOVO\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], @@ -102,7 +102,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.401/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.403/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Vpassbackend/obj/Vpassbackend.csproj.nuget.g.props b/Vpassbackend/obj/Vpassbackend.csproj.nuget.g.props index fde0135..a7b6069 100644 --- a/Vpassbackend/obj/Vpassbackend.csproj.nuget.g.props +++ b/Vpassbackend/obj/Vpassbackend.csproj.nuget.g.props @@ -5,12 +5,12 @@ NuGet $(MSBuildThisFileDirectory)project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\Hello\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + C:\Users\LENOVO\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages PackageReference - 6.11.0 + 6.11.1 - + @@ -20,8 +20,8 @@ - C:\Users\Hello\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5 - C:\Users\Hello\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3 - C:\Users\Hello\.nuget\packages\microsoft.entityframeworkcore.tools\8.0.18 + C:\Users\LENOVO\.nuget\packages\microsoft.extensions.apidescription.server\6.0.5 + C:\Users\LENOVO\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3 + C:\Users\LENOVO\.nuget\packages\microsoft.entityframeworkcore.tools\8.0.18 \ No newline at end of file diff --git a/Vpassbackend/obj/project.assets.json b/Vpassbackend/obj/project.assets.json index 097308f..ac39600 100644 --- a/Vpassbackend/obj/project.assets.json +++ b/Vpassbackend/obj/project.assets.json @@ -4220,23 +4220,23 @@ ] }, "packageFolders": { - "C:\\Users\\Hello\\.nuget\\packages\\": {}, + "C:\\Users\\LENOVO\\.nuget\\packages\\": {}, "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", + "projectUniqueName": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", "projectName": "Vpassbackend", - "projectPath": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", - "packagesPath": "C:\\Users\\Hello\\.nuget\\packages\\", - "outputPath": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\obj\\", + "projectPath": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", + "packagesPath": "C:\\Users\\LENOVO\\.nuget\\packages\\", + "outputPath": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\Hello\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\LENOVO\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], @@ -4321,7 +4321,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.401/PortableRuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.403/PortableRuntimeIdentifierGraph.json" } } } diff --git a/Vpassbackend/obj/project.nuget.cache b/Vpassbackend/obj/project.nuget.cache index b82dfa1..b6fdd12 100644 --- a/Vpassbackend/obj/project.nuget.cache +++ b/Vpassbackend/obj/project.nuget.cache @@ -1,89 +1,89 @@ { "version": 2, - "dgSpecHash": "0LvAG9jld34=", + "dgSpecHash": "YOzTrqfKGUY=", "success": true, - "projectFilePath": "D:\\NeonCoders\\VehicleAppBackend\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", + "projectFilePath": "D:\\L2S2\\Digital400_VPass\\VehicleAppBackend\\Vpassbackend\\Vpassbackend.csproj", "expectedPackageFiles": [ - "C:\\Users\\Hello\\.nuget\\packages\\azure.core\\1.38.0\\azure.core.1.38.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\azure.identity\\1.11.4\\azure.identity.1.11.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\bcrypt.net-next\\4.0.3\\bcrypt.net-next.4.0.3.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.aspnetcore.authentication.jwtbearer\\8.0.18\\microsoft.aspnetcore.authentication.jwtbearer.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.aspnetcore.openapi\\8.0.8\\microsoft.aspnetcore.openapi.8.0.8.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.codeanalysis.analyzers\\3.3.3\\microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.codeanalysis.common\\4.5.0\\microsoft.codeanalysis.common.4.5.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.codeanalysis.csharp\\4.5.0\\microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.codeanalysis.csharp.workspaces\\4.5.0\\microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.codeanalysis.workspaces.common\\4.5.0\\microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.6\\microsoft.data.sqlclient.5.1.6.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.18\\microsoft.entityframeworkcore.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.18\\microsoft.entityframeworkcore.abstractions.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.18\\microsoft.entityframeworkcore.analyzers.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.18\\microsoft.entityframeworkcore.design.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.18\\microsoft.entityframeworkcore.relational.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.17\\microsoft.entityframeworkcore.sqlserver.8.0.17.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.entityframeworkcore.tools\\8.0.18\\microsoft.entityframeworkcore.tools.8.0.18.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.apidescription.server\\6.0.5\\microsoft.extensions.apidescription.server.6.0.5.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.1\\microsoft.extensions.caching.memory.8.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.1\\microsoft.extensions.dependencyinjection.8.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.2\\microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.2\\microsoft.extensions.dependencymodel.8.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.logging\\8.0.1\\microsoft.extensions.logging.8.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.2\\microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.options\\8.0.2\\microsoft.extensions.options.8.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.extensions.primitives\\8.0.0\\microsoft.extensions.primitives.8.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identity.client\\4.61.3\\microsoft.identity.client.4.61.3.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identity.client.extensions.msal\\4.61.3\\microsoft.identity.client.extensions.msal.4.61.3.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.abstractions\\7.1.2\\microsoft.identitymodel.abstractions.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\7.1.2\\microsoft.identitymodel.jsonwebtokens.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.logging\\7.1.2\\microsoft.identitymodel.logging.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.protocols\\7.1.2\\microsoft.identitymodel.protocols.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\7.1.2\\microsoft.identitymodel.protocols.openidconnect.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.identitymodel.tokens\\7.1.2\\microsoft.identitymodel.tokens.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.openapi\\1.6.23\\microsoft.openapi.1.6.23.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\swashbuckle.aspnetcore\\8.1.4\\swashbuckle.aspnetcore.8.1.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\8.1.4\\swashbuckle.aspnetcore.swagger.8.1.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\8.1.4\\swashbuckle.aspnetcore.swaggergen.8.1.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\8.1.4\\swashbuckle.aspnetcore.swaggerui.8.1.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.clientmodel\\1.0.0\\system.clientmodel.1.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition.attributedmodel\\6.0.0\\system.composition.attributedmodel.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition.convention\\6.0.0\\system.composition.convention.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition.hosting\\6.0.0\\system.composition.hosting.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition.runtime\\6.0.0\\system.composition.runtime.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.composition.typedparts\\6.0.0\\system.composition.typedparts.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.formats.asn1\\8.0.2\\system.formats.asn1.8.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.identitymodel.tokens.jwt\\7.1.2\\system.identitymodel.tokens.jwt.7.1.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.io.pipelines\\6.0.3\\system.io.pipelines.6.0.3.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.memory.data\\1.0.2\\system.memory.data.1.0.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.reflection.metadata\\6.0.1\\system.reflection.metadata.6.0.1.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.runtime.caching\\6.0.0\\system.runtime.caching.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.security.accesscontrol\\6.0.0\\system.security.accesscontrol.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.security.cryptography.cng\\5.0.0\\system.security.cryptography.cng.5.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.security.cryptography.protecteddata\\6.0.0\\system.security.cryptography.protecteddata.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.security.permissions\\6.0.0\\system.security.permissions.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.threading.channels\\6.0.0\\system.threading.channels.6.0.0.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512", - "C:\\Users\\Hello\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512" + "C:\\Users\\LENOVO\\.nuget\\packages\\azure.core\\1.38.0\\azure.core.1.38.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\azure.identity\\1.11.4\\azure.identity.1.11.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\bcrypt.net-next\\4.0.3\\bcrypt.net-next.4.0.3.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\humanizer.core\\2.14.1\\humanizer.core.2.14.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.aspnetcore.authentication.jwtbearer\\8.0.18\\microsoft.aspnetcore.authentication.jwtbearer.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.aspnetcore.openapi\\8.0.8\\microsoft.aspnetcore.openapi.8.0.8.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.bcl.asyncinterfaces\\6.0.0\\microsoft.bcl.asyncinterfaces.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.codeanalysis.analyzers\\3.3.3\\microsoft.codeanalysis.analyzers.3.3.3.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.codeanalysis.common\\4.5.0\\microsoft.codeanalysis.common.4.5.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.codeanalysis.csharp\\4.5.0\\microsoft.codeanalysis.csharp.4.5.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.codeanalysis.csharp.workspaces\\4.5.0\\microsoft.codeanalysis.csharp.workspaces.4.5.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.codeanalysis.workspaces.common\\4.5.0\\microsoft.codeanalysis.workspaces.common.4.5.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.data.sqlclient\\5.1.6\\microsoft.data.sqlclient.5.1.6.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.data.sqlclient.sni.runtime\\5.1.1\\microsoft.data.sqlclient.sni.runtime.5.1.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore\\8.0.18\\microsoft.entityframeworkcore.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\8.0.18\\microsoft.entityframeworkcore.abstractions.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\8.0.18\\microsoft.entityframeworkcore.analyzers.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.design\\8.0.18\\microsoft.entityframeworkcore.design.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\8.0.18\\microsoft.entityframeworkcore.relational.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.sqlserver\\8.0.17\\microsoft.entityframeworkcore.sqlserver.8.0.17.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.entityframeworkcore.tools\\8.0.18\\microsoft.entityframeworkcore.tools.8.0.18.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.apidescription.server\\6.0.5\\microsoft.extensions.apidescription.server.6.0.5.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\8.0.0\\microsoft.extensions.caching.abstractions.8.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.caching.memory\\8.0.1\\microsoft.extensions.caching.memory.8.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\8.0.0\\microsoft.extensions.configuration.abstractions.8.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\8.0.1\\microsoft.extensions.dependencyinjection.8.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\8.0.2\\microsoft.extensions.dependencyinjection.abstractions.8.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.dependencymodel\\8.0.2\\microsoft.extensions.dependencymodel.8.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.logging\\8.0.1\\microsoft.extensions.logging.8.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\8.0.2\\microsoft.extensions.logging.abstractions.8.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.options\\8.0.2\\microsoft.extensions.options.8.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.extensions.primitives\\8.0.0\\microsoft.extensions.primitives.8.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identity.client\\4.61.3\\microsoft.identity.client.4.61.3.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identity.client.extensions.msal\\4.61.3\\microsoft.identity.client.extensions.msal.4.61.3.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.abstractions\\7.1.2\\microsoft.identitymodel.abstractions.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\7.1.2\\microsoft.identitymodel.jsonwebtokens.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.logging\\7.1.2\\microsoft.identitymodel.logging.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.protocols\\7.1.2\\microsoft.identitymodel.protocols.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\7.1.2\\microsoft.identitymodel.protocols.openidconnect.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.identitymodel.tokens\\7.1.2\\microsoft.identitymodel.tokens.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.openapi\\1.6.23\\microsoft.openapi.1.6.23.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.sqlserver.server\\1.0.0\\microsoft.sqlserver.server.1.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\microsoft.win32.systemevents\\6.0.0\\microsoft.win32.systemevents.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\mono.texttemplating\\2.2.1\\mono.texttemplating.2.2.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\swashbuckle.aspnetcore\\8.1.4\\swashbuckle.aspnetcore.8.1.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\8.1.4\\swashbuckle.aspnetcore.swagger.8.1.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\8.1.4\\swashbuckle.aspnetcore.swaggergen.8.1.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\8.1.4\\swashbuckle.aspnetcore.swaggerui.8.1.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.clientmodel\\1.0.0\\system.clientmodel.1.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.codedom\\4.4.0\\system.codedom.4.4.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.collections.immutable\\6.0.0\\system.collections.immutable.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition\\6.0.0\\system.composition.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition.attributedmodel\\6.0.0\\system.composition.attributedmodel.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition.convention\\6.0.0\\system.composition.convention.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition.hosting\\6.0.0\\system.composition.hosting.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition.runtime\\6.0.0\\system.composition.runtime.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.composition.typedparts\\6.0.0\\system.composition.typedparts.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.1\\system.configuration.configurationmanager.6.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.diagnostics.diagnosticsource\\6.0.1\\system.diagnostics.diagnosticsource.6.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.drawing.common\\6.0.0\\system.drawing.common.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.formats.asn1\\8.0.2\\system.formats.asn1.8.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.identitymodel.tokens.jwt\\7.1.2\\system.identitymodel.tokens.jwt.7.1.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.io.pipelines\\6.0.3\\system.io.pipelines.6.0.3.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.memory\\4.5.4\\system.memory.4.5.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.memory.data\\1.0.2\\system.memory.data.1.0.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\system.numerics.vectors.4.5.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.reflection.metadata\\6.0.1\\system.reflection.metadata.6.0.1.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.runtime.caching\\6.0.0\\system.runtime.caching.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.security.accesscontrol\\6.0.0\\system.security.accesscontrol.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.security.cryptography.cng\\5.0.0\\system.security.cryptography.cng.5.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.security.cryptography.protecteddata\\6.0.0\\system.security.cryptography.protecteddata.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.security.permissions\\6.0.0\\system.security.permissions.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.security.principal.windows\\5.0.0\\system.security.principal.windows.5.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.text.encoding.codepages\\6.0.0\\system.text.encoding.codepages.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.text.encodings.web\\6.0.0\\system.text.encodings.web.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.text.json\\4.7.2\\system.text.json.4.7.2.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.threading.channels\\6.0.0\\system.threading.channels.6.0.0.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.4\\system.threading.tasks.extensions.4.5.4.nupkg.sha512", + "C:\\Users\\LENOVO\\.nuget\\packages\\system.windows.extensions\\6.0.0\\system.windows.extensions.6.0.0.nupkg.sha512" ], "logs": [] } \ No newline at end of file diff --git a/obj/Vpassbackend.csproj.EntityFrameworkCore.targets b/obj/Vpassbackend.csproj.EntityFrameworkCore.targets new file mode 100644 index 0000000..7d6485d --- /dev/null +++ b/obj/Vpassbackend.csproj.EntityFrameworkCore.targets @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + +