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