WG TBLCAL
Материал из GedeminWiki
RECREATE TABLE wg_tblcal ( id dintkey, name dname, /* працоўныя дні тыдня */ mon dboolean_notnull DEFAULT 1, tue dboolean_notnull DEFAULT 1, wed dboolean_notnull DEFAULT 1, thu dboolean_notnull DEFAULT 1, fri dboolean_notnull DEFAULT 1, sat dboolean_notnull DEFAULT 0, sun dboolean_notnull DEFAULT 0, /*Праздничные дни по умолчанию нерабочие*/ holidayiswork dboolean_notnull DEFAULT 0, /* інтэрвалы працоўнага часу */ w1_offset dinteger DEFAULT 0, w1_start1 dtime_notnull DEFAULT '00:00:00', w1_end1 dtime_notnull DEFAULT '00:00:00', w1_start2 dtime_notnull DEFAULT '00:00:00', w1_end2 dtime_notnull DEFAULT '00:00:00', w1_start3 dtime_notnull DEFAULT '00:00:00', w1_end3 dtime_notnull DEFAULT '00:00:00', w1_start4 dtime_notnull DEFAULT '00:00:00', w1_end4 dtime_notnull DEFAULT '00:00:00', w2_offset dinteger DEFAULT 0, w2_start1 dtime_notnull DEFAULT '00:00:00', w2_end1 dtime_notnull DEFAULT '00:00:00', w2_start2 dtime_notnull DEFAULT '00:00:00', w2_end2 dtime_notnull DEFAULT '00:00:00', w2_start3 dtime_notnull DEFAULT '00:00:00', w2_end3 dtime_notnull DEFAULT '00:00:00', w2_start4 dtime_notnull DEFAULT '00:00:00', w2_end4 dtime_notnull DEFAULT '00:00:00', w3_offset dinteger DEFAULT 0, w3_start1 dtime_notnull DEFAULT '00:00:00', w3_end1 dtime_notnull DEFAULT '00:00:00', w3_start2 dtime_notnull DEFAULT '00:00:00', w3_end2 dtime_notnull DEFAULT '00:00:00', w3_start3 dtime_notnull DEFAULT '00:00:00', w3_end3 dtime_notnull DEFAULT '00:00:00', w3_start4 dtime_notnull DEFAULT '00:00:00', w3_end4 dtime_notnull DEFAULT '00:00:00', w4_offset dinteger DEFAULT 0, w4_start1 dtime_notnull DEFAULT '00:00:00', w4_end1 dtime_notnull DEFAULT '00:00:00', w4_start2 dtime_notnull DEFAULT '00:00:00', w4_end2 dtime_notnull DEFAULT '00:00:00', w4_start3 dtime_notnull DEFAULT '00:00:00', w4_end3 dtime_notnull DEFAULT '00:00:00', w4_start4 dtime_notnull DEFAULT '00:00:00', w4_end4 dtime_notnull DEFAULT '00:00:00', w5_offset dinteger DEFAULT 0, w5_start1 dtime_notnull DEFAULT '00:00:00', w5_end1 dtime_notnull DEFAULT '00:00:00', w5_start2 dtime_notnull DEFAULT '00:00:00', w5_end2 dtime_notnull DEFAULT '00:00:00', w5_start3 dtime_notnull DEFAULT '00:00:00', w5_end3 dtime_notnull DEFAULT '00:00:00', w5_start4 dtime_notnull DEFAULT '00:00:00', w5_end4 dtime_notnull DEFAULT '00:00:00', w6_offset dinteger DEFAULT 0, w6_start1 dtime_notnull DEFAULT '00:00:00', w6_end1 dtime_notnull DEFAULT '00:00:00', w6_start2 dtime_notnull DEFAULT '00:00:00', w6_end2 dtime_notnull DEFAULT '00:00:00', w6_start3 dtime_notnull DEFAULT '00:00:00', w6_end3 dtime_notnull DEFAULT '00:00:00', w6_start4 dtime_notnull DEFAULT '00:00:00', w6_end4 dtime_notnull DEFAULT '00:00:00', w7_offset dinteger DEFAULT 0, w7_start1 dtime_notnull DEFAULT '00:00:00', w7_end1 dtime_notnull DEFAULT '00:00:00', w7_start2 dtime_notnull DEFAULT '00:00:00', w7_end2 dtime_notnull DEFAULT '00:00:00', w7_start3 dtime_notnull DEFAULT '00:00:00', w7_end3 dtime_notnull DEFAULT '00:00:00', w7_start4 dtime_notnull DEFAULT '00:00:00', w7_end4 dtime_notnull DEFAULT '00:00:00', /* перад святочны дзень */ w8_offset dinteger DEFAULT 0, w8_start1 dtime_notnull DEFAULT '00:00:00', w8_end1 dtime_notnull DEFAULT '00:00:00', w8_start2 dtime_notnull DEFAULT '00:00:00', w8_end2 dtime_notnull DEFAULT '00:00:00', w8_start3 dtime_notnull DEFAULT '00:00:00', w8_end3 dtime_notnull DEFAULT '00:00:00', w8_start4 dtime_notnull DEFAULT '00:00:00', w8_end4 dtime_notnull DEFAULT '00:00:00', editiondate deditiondate CONSTRAINT wg_pk_tblcal PRIMARY KEY (id) );