Lines 4171-4176
CREATE TABLE illrequests (
Link Here
|
4171 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4171 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4172 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4172 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4173 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
4173 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
|
|
4174 |
status_alias integer DEFAULT NULL, -- Foreign key to relevant authorised_values.id |
4174 |
placed date DEFAULT NULL, -- Date the request was placed |
4175 |
placed date DEFAULT NULL, -- Date the request was placed |
4175 |
replied date DEFAULT NULL, -- Last API response |
4176 |
replied date DEFAULT NULL, -- Last API response |
4176 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
4177 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
Lines 4192-4197
CREATE TABLE illrequests (
Link Here
|
4192 |
FOREIGN KEY (`branchcode`) |
4193 |
FOREIGN KEY (`branchcode`) |
4193 |
REFERENCES `branches` (`branchcode`) |
4194 |
REFERENCES `branches` (`branchcode`) |
4194 |
ON UPDATE CASCADE ON DELETE CASCADE |
4195 |
ON UPDATE CASCADE ON DELETE CASCADE |
|
|
4196 |
CONSTRAINT `illrequests_safk` |
4197 |
FOREIGN KEY (`status_alias`) |
4198 |
REFERENCES `authorised_values` (`id`) |
4199 |
ON UPDATE CASCADE ON DELETE SET NULL |
4195 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4200 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4196 |
|
4201 |
|
4197 |
-- |
4202 |
-- |