namespace MyOffice.Data.Models.Accounts;

using MyOffice.Data.Models.Users;

public enum AccountAccessTypeEnum
{
	balance,
	credit,
	external,
	other,
}

public class AccountAccess
{
	public int Id { get; set; }
	public Guid AccountId { get; set; }
	public Account? Account { get; set; }
	public Guid UserId { get; set; }
	public User? User { get; set; }
	public Guid OwnerId { get; set; }
	public User? Owner { get; set; }

	public bool IsAllowRead { get; set; }
	public bool IsAllowWrite { get; set; }
	public bool IsAllowManage { get; set; }
	public AccountAccessTypeEnum Type { get; set; }
	public string? Name { get; set; }
}