| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace WinSolutions.Sveta.Server.Data.DataModel.Entities |
| | | 5 | | { |
| | | 6 | | [Table("refCurrency")] |
| | | 7 | | public class Currency : ExternalRecord, ITrackableRecord |
| | | 8 | | { |
| | 190 | 9 | | public string global_id { get; set; } |
| | | 10 | | |
| | 190 | 11 | | public string system_object_id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | 190 | 14 | | public string CODE { get; set; } |
| | | 15 | | |
| | | 16 | | [Required] |
| | 190 | 17 | | public string STRCODE { get; set; } |
| | | 18 | | |
| | | 19 | | [Required] |
| | 190 | 20 | | public string NAME { get; set; } |
| | | 21 | | |
| | | 22 | | [Required] |
| | 190 | 23 | | public string COUNTRY { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// курс валюты |
| | | 27 | | /// </summary> |
| | | 28 | | [Required] |
| | | 29 | | [Column(TypeName = "decimal(18,2)")] |
| | 190 | 30 | | public decimal Rate { get; set; } |
| | | 31 | | } |
| | | 32 | | } |