diff --git a/db/init/init.sql b/db/init/init.sql index ee9b516..f0bfde5 100644 --- a/db/init/init.sql +++ b/db/init/init.sql @@ -703,6 +703,17 @@ INSERT INTO `users` ( `last_name`, `display_name`, `email`, + `profile_description`, + `job_title`, + `phone`, + `mobile`, + `short_dial`, + `address`, + `postal_code`, + `city`, + `country`, + `region`, + `hire_date`, `email_verified_at`, `password`, `locale`, @@ -721,6 +732,17 @@ SELECT 'Demo', 'Detlef Demo', 'demo@user.com', + 'Demo-Nutzer fuer Vorschau und Test der Adressbuchdarstellung.', + 'Sachbearbeiter', + '+49 30 1234567', + '+49 171 2345678', + '123', + 'Musterstrasse 1', + '10115', + 'Berlin', + 'Deutschland', + 'Berlin', + '2024-01-15', NOW(), '$2y$12$KVCQvuy4Pl1aySBuzSpc7ehpZhAzYZkndDI9OaMi05E2P/Mhob5HO', 'de', @@ -738,6 +760,21 @@ UPDATE `users` SET `email_verified_at` = COALESCE(`email_verified_at`, NOW()) WHERE `email` = 'demo@user.com'; +UPDATE `users` +SET + `profile_description` = COALESCE(`profile_description`, 'Demo-Nutzer fuer Vorschau und Test der Adressbuchdarstellung.'), + `job_title` = COALESCE(`job_title`, 'Sachbearbeiter'), + `phone` = COALESCE(`phone`, '+49 30 1234567'), + `mobile` = COALESCE(`mobile`, '+49 171 2345678'), + `short_dial` = COALESCE(`short_dial`, '123'), + `address` = COALESCE(`address`, 'Musterstrasse 1'), + `postal_code` = COALESCE(`postal_code`, '10115'), + `city` = COALESCE(`city`, 'Berlin'), + `country` = COALESCE(`country`, 'Deutschland'), + `region` = COALESCE(`region`, 'Berlin'), + `hire_date` = COALESCE(`hire_date`, '2024-01-15') +WHERE `email` = 'demo@user.com'; + INSERT INTO `user_tenants` (`user_id`, `tenant_id`, `created`) SELECT u.id, t.id, NOW() FROM users u