简单问题 - 以下是保存以下记录的数据库设计
account TransactionType TransactionName Amount FeeTransactionId TransactionId RefTransactionId
Alex [Deposit from] [Credit Card x-1234] [-100.00] b a
Alex [Deposit from] [Credit Card Fee] [-3.00] b a
Alex [Added funds from] [Credit Card x-1234] [100.00] c a
Sys_ [Revenue from] [Credit Card Deposit] [3.00] d a
设计
[Transaction]
Id
AccountId
TransactionTypeId
TransactionName
Amount
FeeTransactionId
RefTransactionId
[Account]
Id
Name
[TransactionType]
Id
Name
有没有办法改进此设计?
注意:缺少货币和日期。 :)