Accounting package model naming

Hello everyone,

I'm a native French speaker, and I'm struggling with some model names.
I'm working on the accounting package for an app. I have Accounts
and TransactionRecords, and now I must relate accounts with
transactions. What should the model between be named ?

I thought of AffectedAccount, RecordMember, TransactionMember, but
none of these feels very satisfactory. Even in French I'm not sure
how I would name these objects...

So, if anybody found a good solution, I'd be interested in hearing it.

Thanks !

Hi Francois,

Francois Beausoleil wrote:

I'm working on the accounting package for an app.
I have Accounts and TransactionRecords, and now
I must relate accounts with transactions. What
should the model between be named ?

I'm not completely sure I understand your question, but perhaps this will help.

If you are asking about naming the models for your tables...

Models in Rails are, by convention, named the singular version of the name of the table on which they are based. The model for your Accounts table should be named Account. The model for TransactionRecords should be named TransactionRecord.

If you are asking about naming a model that relates 'accounts with transactions', without more information I'm not sure why you would want a seperate model for this. It seems like a simple has_namy / belongs_to relationship would work. If not, please say more.

Sorry I couldn't be more help.

Best regards,
Bill

I would think:

Accounts->TransactionRecords->Ledgers

Hello Tom,

Sounds pretty similar to what we're doing here (though our naming is a
bit off, we inherited some made-up-english terms), but could you
elaborate on what each table contains?

Accounts is straight forward enough. But, if someone else store the
accounts for different entities (we call them 'clients') in one db,
I'd love to see how you tie accounts to reporting.

I'm not sure about TxRecord vs. Ledger, though.

Isak

Perhaps not very useful in this case but I find looking up a thesaurus to be very useful in coming up with good model names sometimes.

Hammed