|
1 | 1 | SET foreign_key_checks = 0; |
2 | 2 |
|
3 | 3 | INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, |
4 | | - `updated_at`, `role`, `register_token`, `deleted_at`) |
| 4 | + `updated_at`, `register_token`, `deleted_at`) |
5 | 5 | VALUES (4, 'Dark Vador', 'darkvador@gmail.com', NULL, '$2y$10$4f8HPTwKhVzpAP5kas6PN.VP5TlJrgZ0nEcbhrnk6OFtkiUA9czbK', |
6 | 6 | 'OHEZUT3JTudVaM98f52WUSEIBYt2iFVe4x3fIIh5ppc6mbLQkfcvdd7g7Rcq', '2022-09-09 20:04:18', '2022-09-12 14:43:54', |
7 | | - 'administrator', NULL, NULL), |
| 7 | + NULL, NULL), |
8 | 8 | (5, 'John DOE', 'johndoe@gmail.com', NULL, '$2y$10$dhwupOVEiVsQpQZeSIJhWutsBYF8pde7/BTViD5j9f8c1CregT9Gq', NULL, |
9 | | - '2022-09-11 14:37:09', '2022-09-12 11:39:04', 'employee', NULL, NULL), |
| 9 | + '2022-09-11 14:37:09', '2022-09-12 11:39:04', NULL, NULL), |
10 | 10 | (6, 'Jane DOE', 'janedoe@gmail.com', NULL, '$2y$10$l1pWnJh2iUDttzLLlmG5weeTNT7O/UAwsWnPrD8XH8yszCzrhFh82', NULL, |
11 | | - '2022-09-11 14:48:37', '2022-09-11 15:08:21', 'customer', NULL, NULL), |
| 11 | + '2022-09-11 14:48:37', '2022-09-11 15:08:21', NULL, NULL), |
12 | 12 | (10, 'Thomas Edison', 'thomasedison@gmail.com', NULL, |
13 | 13 | '$2y$10$MR51TVg3xzUXs308oTxp8.Pw9sjs7ijaeGYLJZsq85CdY/azYD0bG', NULL, '2022-09-11 15:31:51', |
14 | | - '2022-09-11 15:31:55', 'employee', '82c93eba-9a33-4dbe-abac-22f11f5c1f54', NULL); |
| 14 | + '2022-09-11 15:31:55', '82c93eba-9a33-4dbe-abac-22f11f5c1f54', NULL); |
15 | 15 |
|
16 | 16 | INSERT INTO `projects` (`id`, `name`, `description`, `owner_id`, `deleted_at`, `created_at`, `updated_at`, `ticket_prefix`) |
17 | 17 | VALUES (1, 'Default project', |
@@ -86,6 +86,44 @@ INSERT INTO `companies` (`id`, `name`, `logo`, `description`, `is_disabled`, `re |
86 | 86 | (1, 'Google', null, '<p>Google is an American technology services company founded in 1998 in Silicon Valley, California, by Larry Page and Sergey Brin, creators of the Google search engine. It has been a subsidiary of the Alphabet company since August 2015.</p>', 0, 4, NULL, '2022-09-24 23:31:50', '2022-09-24 23:44:50'), |
87 | 87 | (2, 'Meta', null, '<p>Meta Platforms, Inc., better known by the trade name Meta, is an American company created in 2004 by Mark Zuckerberg. It is one of the giants of the Web, grouped under the acronym GAFAM, alongside Google, Apple, Amazon and Microsoft.</p>', 1, 5, NULL, '2022-09-24 23:46:26', '2022-09-24 23:46:47'); |
88 | 88 |
|
| 89 | +TRUNCATE TABLE permissions; |
| 90 | +INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES |
| 91 | +(1, 'View all projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 92 | +(2, 'Update all projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 93 | +(3, 'Delete all projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 94 | +(4, 'Create projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 95 | +(5, 'View own projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 96 | +(6, 'Update own projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 97 | +(7, 'Delete own projects', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 98 | +(8, 'View all tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 99 | +(9, 'Update all tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 100 | +(10, 'Delete all tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 101 | +(11, 'Create tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 102 | +(12, 'View own tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 103 | +(13, 'Update own tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 104 | +(14, 'Delete own tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 105 | +(15, 'Assign tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 106 | +(16, 'Change status tickets', 'web', '2022-09-25 15:51:10', '2022-09-25 15:51:10'), |
| 107 | +(17, 'Can view Analytics page', 'web', '2022-09-25 16:32:37', '2022-09-25 16:32:37'), |
| 108 | +(18, 'Can view Tickets page', 'web', '2022-09-25 16:32:37', '2022-09-25 16:32:37'), |
| 109 | +(19, 'Can view Kanban page', 'web', '2022-09-25 16:32:37', '2022-09-25 16:32:37'), |
| 110 | +(20, 'Can view Administration page', 'web', '2022-09-25 16:32:37', '2022-09-25 16:32:37'), |
| 111 | +(21, 'View all users', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 112 | +(22, 'View company users', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 113 | +(25, 'Manage ticket statuses', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 114 | +(26, 'Manage ticket priorities', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 115 | +(27, 'Manage ticket types', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 116 | +(28, 'View activity log', 'web', '2022-09-25 16:41:08', '2022-09-25 16:41:08'), |
| 117 | +(29, 'Create users', 'web', '2022-09-25 17:05:37', '2022-09-25 17:05:37'), |
| 118 | +(30, 'Update users', 'web', '2022-09-25 17:05:37', '2022-09-25 17:05:37'), |
| 119 | +(31, 'Delete users', 'web', '2022-09-25 17:05:37', '2022-09-25 17:05:37'), |
| 120 | +(32, 'Assign permissions', 'web', '2022-09-25 17:05:37', '2022-09-25 17:05:37'), |
| 121 | +(33, 'View all companies', 'web', '2022-09-25 17:14:01', '2022-09-25 17:14:01'), |
| 122 | +(34, 'View own companies', 'web', '2022-09-25 17:14:02', '2022-09-25 17:14:02'), |
| 123 | +(38, 'Create companies', 'web', '2022-09-25 17:19:38', '2022-09-25 17:19:38'), |
| 124 | +(39, 'Update companies', 'web', '2022-09-25 17:19:38', '2022-09-25 17:19:38'), |
| 125 | +(40, 'Delete companies', 'web', '2022-09-25 17:19:38', '2022-09-25 17:19:38'); |
| 126 | + |
89 | 127 | INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES |
90 | 128 | (1, 'App\\Models\\User', 4), |
91 | 129 | (2, 'App\\Models\\User', 4), |
|
0 commit comments