reflect last database changes
This commit is contained in:
parent
ba45fc8886
commit
624d73086f
@ -77,8 +77,8 @@ INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quanti
|
|||||||
--
|
--
|
||||||
-- Table: business_partner
|
-- Table: business_partner
|
||||||
--
|
--
|
||||||
INSERT INTO business_partner (member_id, member_code, member_since, shares_signed, free, indicator_vat, exempt_vat)
|
INSERT INTO business_partner (member_id, member_code, member_since, free, indicator_vat, exempt_vat)
|
||||||
VALUES (10000, 'hsh00-hsh', current_date, 0, TRUE, 'NET', FALSE);
|
VALUES (10000, 'hsh00-hsh', current_date, TRUE, 'NET', FALSE);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- table: contact
|
-- table: contact
|
||||||
|
@ -88,14 +88,11 @@ CREATE TABLE business_partner (
|
|||||||
member_role character varying(100),
|
member_role character varying(100),
|
||||||
author_contract date,
|
author_contract date,
|
||||||
nondisc_contract date,
|
nondisc_contract date,
|
||||||
shares_updated date,
|
|
||||||
shares_signed integer NOT NULL,
|
|
||||||
uid_vat character varying(20),
|
uid_vat character varying(20),
|
||||||
free boolean NOT NULL,
|
free boolean NOT NULL,
|
||||||
indicator_vat character varying(20) NOT NULL,
|
indicator_vat character varying(20) NOT NULL,
|
||||||
exempt_vat boolean NOT NULL,
|
exempt_vat boolean NOT NULL,
|
||||||
CONSTRAINT ckc_member_id_business CHECK (((member_id >= 10000) AND (member_id <= 99999))),
|
CONSTRAINT ckc_member_id_business CHECK (((member_id >= 10000) AND (member_id <= 99999))),
|
||||||
CONSTRAINT ckc_shares_signed_business CHECK ((shares_signed >= 0)),
|
|
||||||
CONSTRAINT ckt_business_partner CHECK ( ( ((member_since IS NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NOT NULL) AND (member_since < member_until)) ) AND ((member_code)::text ~~ 'hsh00-%'::text)),
|
CONSTRAINT ckt_business_partner CHECK ( ( ((member_since IS NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NULL)) OR ((member_since IS NOT NULL) AND (member_until IS NOT NULL) AND (member_since < member_until)) ) AND ((member_code)::text ~~ 'hsh00-%'::text)),
|
||||||
UNIQUE (bp_id)
|
UNIQUE (bp_id)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user