Currency.cs
407 bytes
| 1 | using System.ComponentModel.DataAnnotations; |
|---|---|
| 2 | using SplitApp.Shared.Kernel.Domain; |
| 3 | using SplitApp.Shared.Kernel.Localization; |
| 4 | |
| 5 | namespace SplitApp.Modules.Expenses.Domain.Entities; |
| 6 | |
| 7 | public class Currency : BaseEntity |
| 8 | { |
| 9 | [MaxLength(3)] |
| 10 | public string Code { get; set; } = default!; |
| 11 | |
| 12 | public LangStr Name { get; set; } = new(); |
| 13 | |
| 14 | [MaxLength(10)] |
| 15 | public string Symbol { get; set; } = default!; |
| 16 | } |
| 17 | |