| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | |
| | | 4 | | namespace FAU.Entidades; |
| | | 5 | | |
| | | 6 | | [Table("fictos_persona")] |
| | | 7 | | public class FictoPersona |
| | | 8 | | { |
| | | 9 | | [Key] |
| | | 10 | | [Column("id")] |
| | 39 | 11 | | public long Id { get; set; } |
| | | 12 | | |
| | | 13 | | [Required] |
| | | 14 | | [Column("persona_id")] |
| | 45 | 15 | | public long PersonaId { get; set; } |
| | | 16 | | |
| | | 17 | | [Required] |
| | | 18 | | [Column("acreedor_id")] |
| | 23 | 19 | | public long AcreedorId { get; set; } |
| | | 20 | | |
| | | 21 | | [Required] |
| | | 22 | | [Column("catalogo_item_id")] |
| | 25 | 23 | | public long CatalogoItemId { get; set; } |
| | | 24 | | |
| | | 25 | | [Required] |
| | | 26 | | [Column("importe", TypeName = "numeric(14,2)")] |
| | 53 | 27 | | public decimal Importe { get; set; } |
| | | 28 | | |
| | | 29 | | [Required] |
| | | 30 | | [Column("activo")] |
| | 69 | 31 | | public bool Activo { get; set; } = true; |
| | | 32 | | |
| | | 33 | | [Column("observaciones")] |
| | 19 | 34 | | public string? Observaciones { get; set; } |
| | | 35 | | |
| | | 36 | | [Required] |
| | | 37 | | [Column("fecha_creacion")] |
| | 43 | 38 | | public DateTime FechaCreacion { get; set; } = DateTime.UtcNow; |
| | | 39 | | |
| | | 40 | | [Column("fecha_modificacion")] |
| | 14 | 41 | | public DateTime? FechaModificacion { get; set; } |
| | | 42 | | |
| | | 43 | | [Column("fecha_baja")] |
| | 15 | 44 | | public DateTime? FechaBaja { get; set; } |
| | | 45 | | |
| | | 46 | | [Column("usuario_creacion_id")] |
| | 8 | 47 | | public long? UsuarioCreacionId { get; set; } |
| | | 48 | | |
| | | 49 | | [Column("usuario_modificacion_id")] |
| | 5 | 50 | | public long? UsuarioModificacionId { get; set; } |
| | | 51 | | |
| | | 52 | | [Column("usuario_baja_id")] |
| | 4 | 53 | | public long? UsuarioBajaId { get; set; } |
| | | 54 | | |
| | | 55 | | [ForeignKey(nameof(PersonaId))] |
| | 19 | 56 | | public virtual Persona Persona { get; set; } = null!; |
| | | 57 | | |
| | | 58 | | [ForeignKey(nameof(AcreedorId))] |
| | 23 | 59 | | public virtual Acreedor Acreedor { get; set; } = null!; |
| | | 60 | | |
| | | 61 | | [ForeignKey(nameof(CatalogoItemId))] |
| | 28 | 62 | | public virtual CatalogoItem CatalogoItem { get; set; } = null!; |
| | | 63 | | |
| | | 64 | | [ForeignKey(nameof(UsuarioCreacionId))] |
| | 0 | 65 | | public virtual Usuario? UsuarioCreacion { get; set; } |
| | | 66 | | |
| | | 67 | | [ForeignKey(nameof(UsuarioModificacionId))] |
| | 0 | 68 | | public virtual Usuario? UsuarioModificacion { get; set; } |
| | | 69 | | |
| | | 70 | | [ForeignKey(nameof(UsuarioBajaId))] |
| | 0 | 71 | | public virtual Usuario? UsuarioBaja { get; set; } |
| | | 72 | | } |