Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 79C7E2E0205 for ; Wed, 6 Feb 2008 21:09:01 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 02028-06 for ; Wed, 6 Feb 2008 21:08:57 -0400 (AST) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by postgresql.org (Postfix) with ESMTP id 44A022E01CC for ; Wed, 6 Feb 2008 21:08:57 -0400 (AST) Received: by mu-out-0910.google.com with SMTP id w8so2459348mue.1 for ; Wed, 06 Feb 2008 17:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=8yAz8HOOm5Wj4xItBA7/J/KgnrfOlfoYWUGFWchIdfo=; b=sGmF+VUG74Y9oRWlk2GdGg5fMYvNwnYmUVSYLzO8ojKcvNx9ocz5WjxOVuTIdRe2E+R0dsFNCCl4Ib5U1Y9Qn+RjUmeE8qs/mH5fUA2wowQS3/gNtsILJvoraRoC7J6MJUFEdIHdVVORfkiFYW8rZkF7nxsP01bPTy2ci1A8HRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=XeS302JVNnjHJdHqagX44Ufv/HC5A1mKi/57M7hBceuZLveSv/Ifn1xOl3CwVkJd0XqKMSwD8xBY1jYu6c/FM/3iu3oM5Gozo3QIYjtRUeqOXT6eDJsHDolTiBUGj2Z/JD5kBomZgLxJxL/2974WlZMc2A0v/VbGyCBi2pLKklM= Received: by 10.65.225.7 with SMTP id c7mr6081164qbr.1.1202346534675; Wed, 06 Feb 2008 17:08:54 -0800 (PST) Received: by 10.64.242.15 with HTTP; Wed, 6 Feb 2008 17:08:54 -0800 (PST) Message-ID: <8078a1730802061708q17c72234xe61be822459a24a8@mail.gmail.com> Date: Wed, 6 Feb 2008 17:08:54 -0800 From: "Medi Montaseri" To: pgsql-sql@postgresql.org Subject: accounting schema MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22629_29569223.1202346534612" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/46 X-Sequence-Number: 30137 ------=_Part_22629_29569223.1202346534612 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am learning my way into Accounting and was wondering how Accounting applications are designed. perhaps you could point the way.... On one hand, accountants talk about a sacret equation A = L + OE (Asset = Libility + Owner Equity) and then under each categories there are one or many account. On the other hand a DBA thinks in terms of tables and relations. Instead of getting theoritical, allow me to setup an example Say you have have construction project (like a room addition) or one of those flip this house deals Owner brings the land (equity) of say worth $100K Expenses begin to mount ( that is a minus against OE) Account Payble begins to mount (that is a liability) And one day you experience a sale As a DBA, (and keeping it simple) I am thinking I need a table for every account which migh look like id, description, credit, debit, validated, created_on, created_by, modified_on, modified_by Is that pretty match it ? Please let me know if you have seen some accounting or DB book that addresses this problem domain. Thanks Medi ------=_Part_22629_29569223.1202346534612 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I am learning my way into Accounting and was wondering how Accounting applications are designed. perhaps you could point the way....

On one hand, accountants talk about a sacret equation A = L + OE (Asset = Libility + Owner Equity) and then under each categories there are one or many account. On the other hand a DBA thinks in terms of tables and relations. Instead of getting theoritical, allow me to setup an example

Say you have have construction project (like a room addition) or one of those flip this house deals

Owner brings the land (equity) of say worth $100K
Expenses begin to mount ( that is a minus against OE)
Account Payble begins to mount (that is a liability)
And one day you experience a sale

As a DBA, (and keeping it simple) I am thinking I need a table for every account which migh look like

id, description, credit, debit, validated, created_on, created_by, modified_on, modified_by

Is that pretty match it ?
Please let me know if you have seen some accounting or DB book that addresses this problem domain.

Thanks
Medi

------=_Part_22629_29569223.1202346534612--