ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `subscriptionroutinglist_ibfk_2` FOREIGN KEY (`subscriptionid`) REFERENCES `subscription` (`subscriptionid`)
ON DELETE CASCADE ON UPDATE CASCADE
-<<<<<<< 85adee702147e7112ed41a440ad4f13d2ed9fd36
-=======
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
---
--- Table structure for table `suggestions`
---
-
-DROP TABLE IF EXISTS `suggestions`;
-CREATE TABLE `suggestions` ( -- purchase suggestions
- `suggestionid` int(8) NOT NULL auto_increment, -- unique identifier assigned automatically by Koha
- `suggestedby` int(11) NOT NULL default 0, -- borrowernumber for the person making the suggestion, foreign key linking to the borrowers table
- `suggesteddate` date NOT NULL, -- date the suggestion was submitted
- `managedby` int(11) default NULL, -- borrowernumber for the librarian managing the suggestion, foreign key linking to the borrowers table
- `manageddate` date default NULL, -- date the suggestion was updated
- acceptedby INT(11) default NULL, -- borrowernumber for the librarian who accepted the suggestion, foreign key linking to the borrowers table
- accepteddate date default NULL, -- date the suggestion was marked as accepted
- rejectedby INT(11) default NULL, -- borrowernumber for the librarian who rejected the suggestion, foreign key linking to the borrowers table
- rejecteddate date default NULL, -- date the suggestion was marked as rejected
- `STATUS` varchar(10) NOT NULL default '', -- suggestion status (ASKED, CHECKED, ACCEPTED, or REJECTED)
- `note` mediumtext, -- note entered on the suggestion
- `author` varchar(80) default NULL, -- author of the suggested item
- `title` varchar(255) default NULL, -- title of the suggested item
- `copyrightdate` smallint(6) default NULL, -- copyright date of the suggested item
- `publishercode` varchar(255) default NULL, -- publisher of the suggested item
- `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- date and time the suggestion was updated
- `volumedesc` varchar(255) default NULL,
- `publicationyear` smallint(6) default 0,
- `place` varchar(255) default NULL, -- publication place of the suggested item
- `isbn` varchar(30) default NULL, -- isbn of the suggested item
- `biblionumber` int(11) default NULL, -- foreign key linking the suggestion to the biblio table after the suggestion has been ordered
- `reason` text, -- reason for accepting or rejecting the suggestion
- `patronreason` text, -- reason for making the suggestion
- budgetid INT(11), -- foreign key linking the suggested budget to the aqbudgets table
- branchcode VARCHAR(10) default NULL, -- foreign key linking the suggested branch to the branches table
- collectiontitle text default NULL, -- collection name for the suggested item
- itemtype VARCHAR(30) default NULL, -- suggested item type
- quantity SMALLINT(6) default NULL, -- suggested quantity to be purchased
- currency VARCHAR(3) default NULL, -- suggested currency for the suggested price
- price DECIMAL(28,6) default NULL, -- suggested price
- total DECIMAL(28,6) default NULL, -- suggested total cost (price*quantity updated for currency)
- PRIMARY KEY (`suggestionid`),
- KEY `suggestedby` (`suggestedby`),
- KEY `managedby` (`managedby`),
- KEY `status` (`STATUS`),
- KEY `biblionumber` (`biblionumber`),
- KEY `branchcode` (`branchcode`),
- CONSTRAINT `suggestions_budget_id_fk` FOREIGN KEY (`budgetid`) REFERENCES `aqbudgets` (`budget_id`) ON DELETE SET NULL ON UPDATE CASCADE
->>>>>>> BZ7677: New areas in subscriptions and new functions when receiving.
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--