17 |
p_start date NOT NULL, |
p_start date NOT NULL, |
18 |
p_end date, |
p_end date, |
19 |
p_exercice text DEFAULT to_char(now(), 'YYYY'::text) NOT NULL, |
p_exercice text DEFAULT to_char(now(), 'YYYY'::text) NOT NULL, |
20 |
p_closed boolean DEFAULT false |
p_closed boolean DEFAULT false, |
21 |
|
p_central boolean DEFAULT false |
22 |
); |
); |
23 |
CREATE TABLE jrn_type ( |
CREATE TABLE jrn_type ( |
24 |
jrn_type_id character(3) NOT NULL, |
jrn_type_id character(3) NOT NULL, |
168 |
jr_ech date, |
jr_ech date, |
169 |
jr_rapt text, |
jr_rapt text, |
170 |
jr_valid boolean DEFAULT true, |
jr_valid boolean DEFAULT true, |
|
j_pj integer, |
|
171 |
jr_opid integer, |
jr_opid integer, |
172 |
jr_c_opid integer |
jr_c_opid integer, |
173 |
|
jr_pj oid, |
174 |
|
jr_pj_name text, |
175 |
|
jr_pj_type text |
176 |
); |
); |
177 |
CREATE TABLE stock_goods ( |
CREATE TABLE stock_goods ( |
178 |
sg_id integer DEFAULT nextval('s_stock_goods'::text) NOT NULL, |
sg_id integer DEFAULT nextval('s_stock_goods'::text) NOT NULL, |