Lines 4145-4150
CREATE TABLE illrequests (
Link Here
|
4145 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4145 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4146 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4146 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4147 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
4147 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
|
|
4148 |
status_alias integer DEFAULT NULL, -- Foreign key to relevant authorised_values.id |
4148 |
placed date DEFAULT NULL, -- Date the request was placed |
4149 |
placed date DEFAULT NULL, -- Date the request was placed |
4149 |
replied date DEFAULT NULL, -- Last API response |
4150 |
replied date DEFAULT NULL, -- Last API response |
4150 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
4151 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
Lines 4165-4170
CREATE TABLE illrequests (
Link Here
|
4165 |
FOREIGN KEY (`branchcode`) |
4166 |
FOREIGN KEY (`branchcode`) |
4166 |
REFERENCES `branches` (`branchcode`) |
4167 |
REFERENCES `branches` (`branchcode`) |
4167 |
ON UPDATE CASCADE ON DELETE CASCADE |
4168 |
ON UPDATE CASCADE ON DELETE CASCADE |
|
|
4169 |
CONSTRAINT `illrequests_safk` |
4170 |
FOREIGN KEY (`status_alias`) |
4171 |
REFERENCES `authorised_values` (`id`) |
4172 |
ON DELETE SET NULL |
4168 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4173 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4169 |
|
4174 |
|
4170 |
-- |
4175 |
-- |
4171 |
- |
|
|