Created
July 12, 2019 01:02
-
-
Save voidnerd/13567c3e3b5a1deec8b9d8af220bbf1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create database if not exists `worktern`; | |
| CREATE TABLE `users` ( | |
| `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
| `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `email_verified_at` timestamp NULL DEFAULT NULL, | |
| `country` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `account_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `bio` text COLLATE utf8mb4_unicode_ci, | |
| `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
| `no_of_employees` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
| `department_in_company` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
| `email_verification_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
| `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, | |
| `created_at` timestamp NULL DEFAULT NULL, | |
| `updated_at` timestamp NULL DEFAULT NULL, | |
| PRIMARY KEY (`id`), | |
| UNIQUE KEY `users_email_unique` (`email`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |
| CREATE TABLE `password_resets` ( | |
| `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
| `created_at` timestamp NULL DEFAULT NULL, | |
| KEY `password_resets_email_index` (`email`) | |
| ) ENGINE=InnoDB 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