Add project files.

This commit is contained in:
KhasanovAM
2026-01-18 00:30:29 +04:00
parent 9c5a7ce993
commit 61a598aceb
27 changed files with 1974 additions and 0 deletions

35
Models/Orders.cs Normal file
View File

@@ -0,0 +1,35 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LogisticsApp.Server.Models
{
public class Order
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(200)]
public string ClientName { get; set; } = string.Empty;
[Required]
[Column(TypeName = "decimal(18,2)")]
public decimal OrderCost { get; set; }
[Required]
public DateTime OrderDate { get; set; } = DateTime.UtcNow;
[Required]
[StringLength(20)]
public string Status { get; set; } = "pending"; // pending, in_progress, completed, cancelled
[Required]
[StringLength(500)]
public string Address { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime? UpdatedAt { get; set; } = DateTime.UtcNow;
}
}