Lines 1318-1334
CREATE TABLE `overduerules` ( -- overdue notice status and triggers
Link Here
|
1318 |
`overduerules_id` int(11) NOT NULL AUTO_INCREMENT, -- unique identifier for the overduerules |
1318 |
`overduerules_id` int(11) NOT NULL AUTO_INCREMENT, -- unique identifier for the overduerules |
1319 |
`branchcode` varchar(10) NOT NULL default '', -- foreign key from the branches table to define which branch this rule is for (if blank it's all libraries) |
1319 |
`branchcode` varchar(10) NOT NULL default '', -- foreign key from the branches table to define which branch this rule is for (if blank it's all libraries) |
1320 |
`categorycode` varchar(10) NOT NULL default '', -- foreign key from the categories table to define which patron category this rule is for |
1320 |
`categorycode` varchar(10) NOT NULL default '', -- foreign key from the categories table to define which patron category this rule is for |
1321 |
`delay1` int(4) default NULL, -- number of days after the item is overdue that the first notice is sent |
1321 |
`itemtype` varchar(10) default '', |
1322 |
`letter1` varchar(20) default NULL, -- foreign key from the letter table to define which notice should be sent as the first notice |
1322 |
`onhold` tinyint(1) default 0, |
1323 |
`debarred1` varchar(1) default 0, -- is the patron restricted when the first notice is sent (1 for yes, 0 for no) |
1323 |
`delay` int(4) NOT NULL default 1, |
1324 |
`delay2` int(4) default NULL, -- number of days after the item is overdue that the second notice is sent |
1324 |
`letter` varchar(20) default NULL, |
1325 |
`debarred2` varchar(1) default 0, -- is the patron restricted when the second notice is sent (1 for yes, 0 for no) |
1325 |
`debarred` varchar(1) default 0, |
1326 |
`letter2` varchar(20) default NULL, -- foreign key from the letter table to define which notice should be sent as the second notice |
1326 |
PRIMARY KEY (`overduerules_id`) |
1327 |
`delay3` int(4) default NULL, -- number of days after the item is overdue that the third notice is sent |
|
|
1328 |
`letter3` varchar(20) default NULL, -- foreign key from the letter table to define which notice should be sent as the third notice |
1329 |
`debarred3` int(1) default 0, -- is the patron restricted when the third notice is sent (1 for yes, 0 for no) |
1330 |
PRIMARY KEY (`overduerules_id`), |
1331 |
UNIQUE KEY `overduerules_branch_cat` (`branchcode`,`categorycode`) |
1332 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1327 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
1333 |
|
1328 |
|
1334 |
-- Table structure for table `pending_offline_operations` |
1329 |
-- Table structure for table `pending_offline_operations` |
Lines 2525-2531
CREATE TABLE `letter` ( -- table for all notice templates in Koha
Link Here
|
2525 |
DROP TABLE IF EXISTS `overduerules_transport_types`; |
2520 |
DROP TABLE IF EXISTS `overduerules_transport_types`; |
2526 |
CREATE TABLE overduerules_transport_types( |
2521 |
CREATE TABLE overduerules_transport_types( |
2527 |
`id` INT(11) NOT NULL AUTO_INCREMENT, |
2522 |
`id` INT(11) NOT NULL AUTO_INCREMENT, |
2528 |
`letternumber` INT(1) NOT NULL DEFAULT 1, |
|
|
2529 |
`message_transport_type` VARCHAR(20) NOT NULL DEFAULT 'email', |
2523 |
`message_transport_type` VARCHAR(20) NOT NULL DEFAULT 'email', |
2530 |
`overduerules_id` INT(11) NOT NULL, |
2524 |
`overduerules_id` INT(11) NOT NULL, |
2531 |
PRIMARY KEY (id), |
2525 |
PRIMARY KEY (id), |
2532 |
- |
|
|