-
Notifications
You must be signed in to change notification settings - Fork 0
/
tbl_schedule.sql
executable file
·47 lines (40 loc) · 1.11 KB
/
tbl_schedule.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* =================================================
*
* Entity Name: 'tbl_schedule.sql'
* Description:
*
*
* $Id: tbl_schedule.sql,v 1.3 2011/06/22 01:33:25 nweeks Exp nweeks $
*
* $Log: tbl_schedule.sql,v $
* Revision 1.3 2011/06/22 01:33:25 nweeks
* BigInt upgrade
*
* Revision 1.2 2008/07/01 03:22:37 nweeks
* General Checkin
*
* Revision 1.1 2007/08/31 07:01:18 nweeks
* Initial revision
*
* Revision 1.1 2007/05/21 06:38:24 nweeks
* Initial revision
*
*
* =================================================
*/
select 'Linking DNA tbl_schedule.sql...' from rdb$database;
CREATE TABLE tbl_schedule (
int_scheduleid BIGINT NOT NULL,
int_taskid BIGINT NOT NULL,
int_userid BIGINT NOT NULL,
dtm_sdate DATE NOT NULL,
tme_stime TIME,
dtm_edate DATE,
tme_etime TIME,
str_notes VARCHAR(4096),
ibl_private INTEGER default 0, /* non-private schedule items are visible to other users. Duh */
PRIMARY KEY(int_scheduleid),
FOREIGN KEY(int_taskid) REFERENCES tbl_task(int_taskid),
FOREIGN KEY(int_userid) REFERENCES tbl_user(int_userid)
);
CREATE GENERATOR gen_tbl_schedule;