Spaces:
Runtime error
Runtime error
almakhmri253-stack
security hardening: rate limiting, account lockout, security headers, password strength
8a2f194 Download Models/Booking.cs from azizproject/majlis: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/azizproject/majlis/resolve/main/Models/Booking.cs
- Command line
-
hf download hf://spaces/azizproject/majlis/Models/Booking.cs
-
curl -L -o Booking.cs https://huggingface.co/spaces/azizproject/majlis/resolve/main/Models/Booking.cs
1.19 kB
| namespace MajlisManagement.Models; | |
| public enum BookingType | |
| { | |
| Wedding = 1, // زواج | |
| Condolence = 2, // عزاء | |
| General = 3 // مناسبة عامة | |
| } | |
| public enum BookingStatus | |
| { | |
| Pending = 1, // قيد الانتظار | |
| Confirmed = 2, // مؤكد | |
| Cancelled = 3, // ملغي | |
| Completed = 4 // مكتمل | |
| } | |
| public class Booking | |
| { | |
| public int Id { get; set; } | |
| public int UserId { get; set; } | |
| public User User { get; set; } = null!; | |
| public DateTime StartDate { get; set; } | |
| public DateTime EndDate { get; set; } | |
| public BookingType Type { get; set; } | |
| public BookingStatus Status { get; set; } = BookingStatus.Pending; | |
| public string GuestName { get; set; } = string.Empty; // اسم صاحب المناسبة | |
| public string PhoneNumber { get; set; } = string.Empty; | |
| public string? Notes { get; set; } | |
| public decimal Cost { get; set; } | |
| public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | |
| public DateTime? UpdatedAt { get; set; } | |
| public string? AdminNote { get; set; } // ملاحظة الإدارة عند الرفض أو التعديل | |
| public Payment? Payment { get; set; } | |
| } | |