Skip to content

Instantly share code, notes, and snippets.

@s884812
Created April 4, 2018 16:08
Show Gist options
  • Save s884812/1a0ebd152cf4b718e21c34754a627d71 to your computer and use it in GitHub Desktop.
Save s884812/1a0ebd152cf4b718e21c34754a627d71 to your computer and use it in GitHub Desktop.
CREATE TABLE `gashapon_items` (
`gashaponsid` int(11) NOT NULL,
`itemid` int(11) NOT NULL,
`chance` int(11) NOT NULL,
`showmsg` tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(255) NOT NULL,
UNIQUE KEY `gashaponsid_itemid` (`gashaponsid`,`itemid`),
KEY `itemid` (`itemid`),
CONSTRAINT `gashapon_items_ibfk_1` FOREIGN KEY (`gashaponsid`) REFERENCES `gashapons` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment