项目重构
数据结构设计
摒弃原来的多层结构,只用一层数据结构设计,并且使用relationships 关系
account设计(兼顾账户和第二类型)
accountID
balance(余额)
counted
icon
name
note
type
- 支出
- 收入
- 普通账户
- 信用账户
- 投资账户
- 借贷账户
billingData: 账单日 credit
creditLimit: 额度 credit
repaymentDate: 还款日 credit
rate: 百分比:利息什么的 installment , loan
autoCalculate installment, loan
installmentType : installment, loan
destinationAccount : loan
installmentTimes: 期数 loan
installmentType: 年月日 loan
isDEBJ: 等额本金 loan
isMoneyIn: 进、出 loan
person: 借贷对象 loan
state: 是否结清 loan
timesInterest: 单次利息 loan
timesLeft: 剩余期数 loan