15 lines
438 B
SQL
15 lines
438 B
SQL
CREATE TABLE `user_confirmations` (
|
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(10) unsigned NOT NULL,
|
|
`token` varchar(64) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `user_id` (`user_id`),
|
|
KEY `token` (`token`),
|
|
CONSTRAINT `user_confirmations_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
|
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
|
|
|
ALTER TABLE
|
|
`users`
|
|
ADD
|
|
`active` tinyint(1) NOT NULL DEFAULT 0;
|