Skip to content

Commit e4a2fb4

Browse files
authored
Merge pull request #93 from devaslanphp/dev
Update demo data
2 parents a64bccc + 0f9a3a2 commit e4a2fb4

File tree

2 files changed

+87
-10
lines changed

2 files changed

+87
-10
lines changed

database/help_desk.pgsql.sql

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
INSERT INTO users (id, name, email, email_verified_at, password, remember_token, created_at,
2-
updated_at, role, register_token, deleted_at)
2+
updated_at, register_token, deleted_at)
33
VALUES (4, 'Dark Vador', 'darkvador@gmail.com', NULL, '$2y$10$4f8HPTwKhVzpAP5kas6PN.VP5TlJrgZ0nEcbhrnk6OFtkiUA9czbK',
44
'OHEZUT3JTudVaM98f52WUSEIBYt2iFVe4x3fIIh5ppc6mbLQkfcvdd7g7Rcq', '2022-09-09 20:04:18', '2022-09-12 14:43:54',
5-
'administrator', NULL, NULL),
5+
NULL, NULL),
66
(5, 'John DOE', 'johndoe@gmail.com', NULL, '$2y$10$dhwupOVEiVsQpQZeSIJhWutsBYF8pde7/BTViD5j9f8c1CregT9Gq', NULL,
7-
'2022-09-11 14:37:09', '2022-09-12 11:39:04', 'employee', NULL, NULL),
7+
'2022-09-11 14:37:09', '2022-09-12 11:39:04', NULL, NULL),
88
(6, 'Jane DOE', 'janedoe@gmail.com', NULL, '$2y$10$l1pWnJh2iUDttzLLlmG5weeTNT7O/UAwsWnPrD8XH8yszCzrhFh82', NULL,
9-
'2022-09-11 14:48:37', '2022-09-11 15:08:21', 'customer', NULL, NULL),
9+
'2022-09-11 14:48:37', '2022-09-11 15:08:21', NULL, NULL),
1010
(10, 'Thomas Edison', 'thomasedison@gmail.com', NULL,
1111
'$2y$10$MR51TVg3xzUXs308oTxp8.Pw9sjs7ijaeGYLJZsq85CdY/azYD0bG', NULL, '2022-09-11 15:31:51',
12-
'2022-09-11 15:31:55', 'employee', '82c93eba-9a33-4dbe-abac-22f11f5c1f54', NULL);
12+
'2022-09-11 15:31:55', '82c93eba-9a33-4dbe-abac-22f11f5c1f54', NULL);
1313

1414
INSERT INTO projects (id, name, description, owner_id, deleted_at, created_at, updated_at, ticket_prefix)
1515
VALUES (1, 'Default project',
@@ -85,6 +85,45 @@ INSERT INTO companies (id, name, logo, description, is_disabled, responsible_id,
8585
(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>', false, 4, NULL, '2022-09-24 23:31:50', '2022-09-24 23:44:50'),
8686
(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>', true, 5, NULL, '2022-09-24 23:46:26', '2022-09-24 23:46:47');
8787

88+
89+
TRUNCATE TABLE permissions CASCADE;
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+
88127
INSERT INTO model_has_permissions (permission_id, model_type, model_id) VALUES
89128
(1, 'App\\Models\\User', 4),
90129
(2, 'App\\Models\\User', 4),

database/help_desk.sql

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
SET foreign_key_checks = 0;
22

33
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`)
55
VALUES (4, 'Dark Vador', 'darkvador@gmail.com', NULL, '$2y$10$4f8HPTwKhVzpAP5kas6PN.VP5TlJrgZ0nEcbhrnk6OFtkiUA9czbK',
66
'OHEZUT3JTudVaM98f52WUSEIBYt2iFVe4x3fIIh5ppc6mbLQkfcvdd7g7Rcq', '2022-09-09 20:04:18', '2022-09-12 14:43:54',
7-
'administrator', NULL, NULL),
7+
NULL, NULL),
88
(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),
1010
(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),
1212
(10, 'Thomas Edison', 'thomasedison@gmail.com', NULL,
1313
'$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);
1515

1616
INSERT INTO `projects` (`id`, `name`, `description`, `owner_id`, `deleted_at`, `created_at`, `updated_at`, `ticket_prefix`)
1717
VALUES (1, 'Default project',
@@ -86,6 +86,44 @@ INSERT INTO `companies` (`id`, `name`, `logo`, `description`, `is_disabled`, `re
8686
(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'),
8787
(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');
8888

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+
89127
INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES
90128
(1, 'App\\Models\\User', 4),
91129
(2, 'App\\Models\\User', 4),

0 commit comments

Comments
 (0)