Lines 4121-4126
CREATE TABLE illrequests (
Link Here
|
4121 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4121 |
biblio_id integer DEFAULT NULL, -- Potential bib linked to request |
4122 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4122 |
branchcode varchar(50) NOT NULL, -- The branch associated with the request |
4123 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
4123 |
status varchar(50) DEFAULT NULL, -- Current Koha status of request |
|
|
4124 |
status_alias integer DEFAULT NULL, -- Foreign key to relevant authorised_values.id |
4124 |
placed date DEFAULT NULL, -- Date the request was placed |
4125 |
placed date DEFAULT NULL, -- Date the request was placed |
4125 |
replied date DEFAULT NULL, -- Last API response |
4126 |
replied date DEFAULT NULL, -- Last API response |
4126 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
4127 |
updated timestamp DEFAULT CURRENT_TIMESTAMP -- Last modification to request |
Lines 4141-4146
CREATE TABLE illrequests (
Link Here
|
4141 |
FOREIGN KEY (`branchcode`) |
4142 |
FOREIGN KEY (`branchcode`) |
4142 |
REFERENCES `branches` (`branchcode`) |
4143 |
REFERENCES `branches` (`branchcode`) |
4143 |
ON UPDATE CASCADE ON DELETE CASCADE |
4144 |
ON UPDATE CASCADE ON DELETE CASCADE |
|
|
4145 |
CONSTRAINT `illrequests_safk` |
4146 |
FOREIGN KEY (`status_alias`) |
4147 |
REFERENCES `authorised_values` (`id`) |
4148 |
ON DELETE SET NULL |
4144 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4149 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4145 |
|
4150 |
|
4146 |
-- |
4151 |
-- |
4147 |
- |
|
|