Skip to content

Instantly share code, notes, and snippets.

@ashour
Created March 24, 2020 13:26
Show Gist options
  • Save ashour/d64a3f72421c2829b884c23b3421449a to your computer and use it in GitHub Desktop.
Save ashour/d64a3f72421c2829b884c23b3421449a to your computer and use it in GitHub Desktop.
CREATE TABLE `users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(1000) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE `user_translations` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`locale` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`first_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`last_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment