26 lines
629 B
C#
26 lines
629 B
C#
using SQLite;
|
|
|
|
namespace Billing.Models
|
|
{
|
|
public class Account : IIdItem
|
|
{
|
|
private const string ICON_DEFAULT = "ic_default";
|
|
|
|
[PrimaryKey, AutoIncrement]
|
|
public int Id { get; set; }
|
|
public string Icon { get; set; } = ICON_DEFAULT;
|
|
public AccountCategory Category { get; set; }
|
|
public string Name { get; set; }
|
|
public decimal Initial { get; set; }
|
|
public decimal Balance { get; set; }
|
|
public string Memo { get; set; }
|
|
}
|
|
|
|
public enum AccountCategory
|
|
{
|
|
Cash = 0,
|
|
CreditCard,
|
|
DebitCard,
|
|
ElecAccount
|
|
}
|
|
} |