diff options
author | linuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-22 17:11:20 +0000 |
---|---|---|
committer | linuxpoet <linuxpoet@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-22 17:11:20 +0000 |
commit | fb9196a9ebc6a7fd2384c894053327fc63782886 (patch) | |
tree | 5a962aa86acfaa9be9eb294ed9f25d6b63c9ec9e | |
parent | 90fbcf4b369da709feb55fa0743925ec53e6019b (diff) |
Created entity to class relationship
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1235 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r-- | sql/Pg-database.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/Pg-database.sql b/sql/Pg-database.sql index 3657ac63..29adb6b8 100644 --- a/sql/Pg-database.sql +++ b/sql/Pg-database.sql @@ -37,6 +37,13 @@ INSERT INTO entity_class (id,class) VALUES (6,'Referral'); SELECT setval('entity_class_id_seq',7); +CREATE TABLE entity_class_to_entity ( + entity_class_id integer not null references entity_class(id), + entity_id integer not null references entity(id) + ); + +COMMENT ON TABLE entity_class_to_entity IS $$ Relation builder for classes to entity $$; + CREATE TABLE country ( id serial PRIMARY KEY, |