bunch o stuff
This commit is contained in:
39
Data.cs
39
Data.cs
@@ -1,4 +1,6 @@
|
||||
namespace ApplianceRepair
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ApplianceRepair
|
||||
{
|
||||
public class HomePageRecord
|
||||
{
|
||||
@@ -11,15 +13,10 @@
|
||||
|
||||
public string? HeaderText { get; set; }
|
||||
|
||||
public string? HeaderButton1Text { get; set; }
|
||||
public string? HeaderButton2Text { get; set; }
|
||||
|
||||
public string? HeaderButton1Link { get; set; }
|
||||
public string? HeaderButton2Link { get; set; }
|
||||
public string? CallHeaderText { get; set; }
|
||||
public string? BookHeaderText { get; set; }
|
||||
|
||||
public string? SecondaryHeaderText { get; set; }
|
||||
|
||||
public string? CopyrightText { get; set; }
|
||||
}
|
||||
|
||||
public class ContentCardRecord
|
||||
@@ -47,10 +44,36 @@
|
||||
|
||||
public class RepairRequestRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
public string? RequestNumber { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Appliance Type is required.")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Appliance brand is required.")]
|
||||
public string? Brand { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Description is required.")]
|
||||
public string? Notes { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Full Name is required.")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Phone number is required.")]
|
||||
[Phone(ErrorMessage = "Please enter a valid phone number.")]
|
||||
public string? Phone { get; set; }
|
||||
}
|
||||
|
||||
public class RepairRequestMediaRecord
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
public string? RequestNumber { get; set; }
|
||||
public string? MediaPath { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user