Spaces:
Sleeping
Sleeping
Download Invoice.cs from Ahmedtiger7/quick: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/Invoice.cs
- Command line
-
hf download hf://spaces/Ahmedtiger7/quick/Invoice.cs
-
curl -L -o Invoice.cs https://huggingface.co/spaces/Ahmedtiger7/quick/resolve/main/Invoice.cs
1.13 kB
| using System.ComponentModel.DataAnnotations; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| namespace QuickInvoiceSaaS.Models | |
| { | |
| public class Invoice : IMustHaveTenant | |
| { | |
| [] | |
| public int Id { get; set; } | |
| // تطبيق الواجهة لفصل البيانات | |
| [] | |
| public string TenantId { get; set; } = string.Empty; | |
| [] | |
| [] | |
| public string InvoiceNumber { get; set; } = string.Empty; // مثل INV-2026-001 | |
| [] | |
| [] | |
| public string ClientName { get; set; } = string.Empty; | |
| public string? ClientEmail { get; set; } | |
| public DateTime IssueDate { get; set; } = DateTime.UtcNow; | |
| [] | |
| public decimal TotalAmount { get; set; } | |
| [] | |
| public string Status { get; set; } = "Unpaid"; // Unpaid, Paid, Draft | |
| // علاقة One-to-Many مع تفاصيل الفاتورة | |
| public List<InvoiceItem> Items { get; set; } = new(); | |
| } | |
| } |