23 lines
672 B
C#
23 lines
672 B
C#
using SmallSoftwareContracts.DataModels;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SmallSoftwareDatabase.Models;
|
|
|
|
internal class Request
|
|
{
|
|
public required string Id { get; set; } = Guid.NewGuid().ToString();
|
|
public required string WorkerId { get; set; }
|
|
public required string Email { get; set; }
|
|
public double Sum { get; set; }
|
|
public bool IsCancel { get; set; }
|
|
public Worker? Worker { get; set; }
|
|
|
|
[ForeignKey("RequestId")]
|
|
public List<InstallationRequest>? InstallationRequests { get; set; }
|
|
}
|