using Lada.Framework.Data.Domains.BaseEntities;
using Lada.Framework.Data.Enums;
using System.ComponentModel.DataAnnotations;

namespace Lada.Framework.Data.Domains.Finance
{
    /// <summary>
    /// Thông tin ngân hàng
    /// </summary>
    public class Bank : BaseEntityWithKey<int>
    {
        /// <summary>
        /// Mã ngân hàng
        /// </summary>
        [MaxLength(16)]
        public string BankCode { get; set; } = string.Empty;

        /// <summary>
        /// Tên đầy đủ
        /// </summary>
        [MaxLength(512)]
        public string FullName { get; set; } = string.Empty;

        /// <summary>
        /// Brand Name
        /// </summary>
        [MaxLength(256)]
        public string BrandName { get; set; } = string.Empty;

        /// <summary>
        /// Thứ tự hiển thị 
        /// </summary>
        public int DisplayOrder { get; set; } = 0;


        #region Navigation Properties

        /// <summary>
        /// Danh sách tài khoản ngân hàng
        /// </summary>
        public virtual ICollection<BankAccount> BankAccounts { get; set; } = new List<BankAccount>();

        #endregion
    }
}
