Dumped on 2005-12-12

Index of database - eekboek_sq20045


Table: accounts

accounts Structure
F-Key Name Type Description
acc_id integer PRIMARY KEY
acc_desc text NOT NULL
verdichtingen.vdi_id acc_struct integer
acc_balres boolean
acc_debcrd boolean
acc_kstomz boolean
btwtabel.btw_id acc_btw smallint
acc_ibalance integer
acc_balance integer

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: boekjaarbalans

boekjaarbalans Structure
F-Key Name Type Description
boekjaren.bky_code bkb_bky character varying(4)
bkb_end date
accounts.acc_id bkb_acc_id integer
bkb_balance integer

Index - Schema public


Table: boekjaren

boekjaren Structure
F-Key Name Type Description
bky_code character varying(4) PRIMARY KEY
bky_name text NOT NULL
bky_begin date NOT NULL
bky_end date NOT NULL
bky_btwperiod smallint
bky_opened date
bky_closed date

 

boekjaren Constraints
Name Constraint
bky_btwperiod CHECK (((((bky_btwperiod = 0) OR (bky_btwperiod = 1)) OR (bky_btwperiod = 4)) OR (bky_btwperiod = 12)))

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: boekstukken

boekstukken Structure
F-Key Name Type Description
bsk_id serial PRIMARY KEY
bsk_nr integer UNIQUE#1 NOT NULL
bsk_desc text NOT NULL
dagboeken.dbk_id bsk_dbk_id character varying(4) UNIQUE#1
bsk_date date
boekjaren.bky_code bsk_bky character varying(4) UNIQUE#1
bsk_amount integer
bsk_open integer

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: boekstukregels

boekstukregels Structure
F-Key Name Type Description
bsr_id serial PRIMARY KEY
bsr_nr integer UNIQUE#1
bsr_date date
boekstukken.bsk_id bsr_bsk_id integer UNIQUE#1
bsr_desc text
bsr_amount integer
btwtabel.btw_id bsr_btw_id smallint
accounts.acc_id bsr_btw_acc integer
bsr_type smallint
accounts.acc_id bsr_acc_id integer
relaties.rel_code bsr_rel_code character(10)
boekstukken.bsk_id bsr_paid integer

 

boekstukregels Constraints
Name Constraint
bsr_type CHECK ((((bsr_type >= 0) AND (bsr_type <= 2)) OR (bsr_type = 9)))

Index - Schema public


Table: btwtabel

btwtabel Structure
F-Key Name Type Description
btw_id smallint PRIMARY KEY
btw_desc text NOT NULL
btw_perc integer NOT NULL
btw_tariefgroep smallint NOT NULL
btw_incl boolean

 

btwtabel Constraints
Name Constraint
btw_tariefgroep CHECK (((btw_tariefgroep >= 0) AND (btw_tariefgroep <= 2)))

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: constants

constants Structure
F-Key Name Type Description
name text PRIMARY KEY
value text

Index - Schema public


Table: dagboeken

dagboeken Structure
F-Key Name Type Description
dbk_id character varying(4) PRIMARY KEY
dbk_desc text NOT NULL
dbk_type smallint NOT NULL
accounts.acc_id dbk_acc_id integer

 

dagboeken Constraints
Name Constraint
dbk_types CHECK (((dbk_type >= 1) AND (dbk_type <= 5)))

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: journal

journal Structure
F-Key Name Type Description
jnl_date date NOT NULL
dagboeken.dbk_id jnl_dbk_id character varying(4) UNIQUE#1
boekstukken.bsk_id jnl_bsk_id integer UNIQUE#1 NOT NULL
jnl_bsr_date date NOT NULL
jnl_bsr_seq integer UNIQUE#1 NOT NULL
accounts.acc_id jnl_acc_id integer
jnl_amount integer
jnl_desc text
relaties.rel_code jnl_rel character(10)

Index - Schema public


Table: metadata

metadata Structure
F-Key Name Type Description
adm_scm_majversion smallint NOT NULL
adm_scm_minversion smallint NOT NULL
adm_scm_revision smallint NOT NULL
boekjaren.bky_code adm_bky character varying(4)
adm_btwbegin date

Index - Schema public


Table: relaties

relaties Structure
F-Key Name Type Description
rel_code character(10) PRIMARY KEY
rel_desc text NOT NULL
rel_debcrd boolean
rel_btw_status smallint
dagboeken.dbk_id rel_ledger character varying(4)
accounts.acc_id rel_acc_id integer

 

relaties Constraints
Name Constraint
rel_btw_status CHECK (((rel_btw_status >= 0) AND (rel_btw_status <= 3)))

Tables referencing this one via Foreign Key Constraints:

Index - Schema public


Table: standaardrekeningen

standaardrekeningen Structure
F-Key Name Type Description
accounts.acc_id std_acc_deb integer
accounts.acc_id std_acc_crd integer
accounts.acc_id std_acc_btw_ih integer
accounts.acc_id std_acc_btw_il integer
accounts.acc_id std_acc_btw_vh integer
accounts.acc_id std_acc_btw_vl integer
accounts.acc_id std_acc_btw_ok integer
accounts.acc_id std_acc_winst integer

Index - Schema public


Table: verdichtingen

verdichtingen Structure
F-Key Name Type Description
vdi_id integer PRIMARY KEY
vdi_desc text NOT NULL
vdi_balres boolean
vdi_kstomz boolean
verdichtingen.vdi_id vdi_struct integer

Tables referencing this one via Foreign Key Constraints:

Index - Schema public

Generated by PostgreSQL Autodoc

W3C HTML 4.01 Strict