using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Schokotaler.Api.Models {
    [Table("giro")]
    public class Giro {
        [Column("id", TypeName="bigserial")]
        public long Id { get; set; }

        [Column("overdraft")]
        [Required]
        public long? Overdraft { get; set; }

        [Column("account_id")]
        [Required]
        public long AccountId { get; set; }

        public Account Account { get; set; }
    }
}