roadie/Scripts/MySQL/Upgrade0005.sql
Steven Hildreth 97300534a4 work for #18
2019-11-16 18:08:44 -06:00

13 lines
No EOL
659 B
SQL

-- Add new table for https://github.com/sphildreth/roadie-vuejs/issues/39
CREATE TABLE `inviteToken` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` smallint(6) DEFAULT NULL,
`roadieId` varchar(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`createdDate` datetime DEFAULT NULL,
`lastUpdated` datetime DEFAULT NULL,
`createdByUserId` int(11) NOT NULL,
`expiresDate` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ix_inviteToken_roadieId` (`roadieId`),
CONSTRAINT `inviteToken_fk_1` FOREIGN KEY (`createdByUserId`) REFERENCES `user` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci