2 -- @description: Briefentwürfe Felder
3 -- @depends: release_3_2_0 letter
5 CREATE TABLE letter_draft (
6 id INTEGER NOT NULL DEFAULT nextval('id'),
7 vc_id INTEGER NOT NULL,
16 page_created_for TEXT,
19 text_created_for TEXT,
31 employee_position TEXT,
34 salesman_position TEXT,
36 itime TIMESTAMP DEFAULT now(),
40 FOREIGN KEY (employee_id) REFERENCES employee (id),
41 FOREIGN KEY (salesman_id) REFERENCES employee (id),
42 FOREIGN KEY (cp_id) REFERENCES contacts(cp_id)