-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from Potentii/database-inserts-v2
Inserts done
- Loading branch information
Showing
1 changed file
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,31 +6,43 @@ use `eiger_schema`; | |
|
||
-- *Registering some users: | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('Administrator', 'admin', '1', '[email protected]', 45920929103, '2080057', 11487596325, '2018-06-15', 'IT', '01.jpg', true, true, true, true); | ||
values ('Administrador', 'admin', '1234', '[email protected]', 45920929103, '2080057', 11487596325, '2018-06-15', 'TI', '01.jpg', true, true, true, true); | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('John Doe', 'user2', '1234', 'john.doe@eiger.com', 78706861318, '99360672', 98563485925, '2017-09-22', 'Management', '02.jpg', true, false, false, true); | ||
values ('Guilherme Reginaldo', 'potentii', '1234', 'potentii02@gmail.com', 78706861318, '99360672', 98563485925, '2017-09-22', 'Admnistrativo', '02.jpg', true, false, true, false); | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('Jane Roe', 'user3', 'abcd', '[email protected]', 69572325221, '99367372', 77785563214, '2019-01-10', 'Accounting', '03.jpg', true, false, false, false); | ||
values ('Ralf Pablo', 'ralfpablo', '1234', '[email protected]', 69572325221, '99367372', 77785563214, '2019-01-10', 'TI', '03.jpg', true, false, true, false); | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('Willian Conti', 'willianconti', '1234', '[email protected]', 42278929111, '2002657', 11439657225, '2017-02-02', 'Marketing', '04.jpg', true, false, false, false); | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('Dennis Sakaki', 'dennissakaki', '1234', '[email protected]', 49850000555, '2074850', 19873616325, '2017-12-21', 'Recepção', '05.jpg', false, false, false, false); | ||
insert into `user` (`name`, `login`, `pass`, `email`, `cpf`, `phone`, `driver_license`, `driver_license_exp`, `department`, `photo`, `active`, `permission_schedules`, `permission_users`, `permission_vehicles`) | ||
values ('Ildete Teixeira', 'ildeteixeira', '1234', '[email protected]', 45920929189, '2081157', 11433396325, '2018-07-22', 'Vendas', '06.jpg', true, false, false, false); | ||
|
||
|
||
-- *Registering some vehicles: | ||
insert into `vehicle` (`title`, `plate`, `year`, `owner`, `renavam`, `manufacturer`, `photo`, `active`) | ||
values ('V12 Vantage Coupe', 'BGQ8456', 2016, 'Mario', '56281020499','Audi', '01.jpg', true); | ||
values ('Civic', 'BGQ8456', 2016, 'Mario', '56281020499','Honda', '01.jpg', true); | ||
insert into `vehicle` (`title`, `plate`, `year`, `owner`, `renavam`, `manufacturer`, `photo`, `active`) | ||
values ('CRV', 'MWL1385', 2011, 'John', '46778167745', 'Honda', '02.jpg', true); | ||
values ('Fusion', 'MWL1385', 2011, 'Amadeu', '46778167745', 'Ford', '02.jpg', true); | ||
insert into `vehicle` (`title`, `plate`, `year`, `owner`, `renavam`, `manufacturer`, `photo`, `active`) | ||
values ('New Fiesta Hatch', 'JVH3845', 2013, 'Andressa', '38164557560', 'Ford', '03.jpg', true); | ||
|
||
values ('Fiesta', 'JVH3845', 2013, 'Andressa', '38164557560', 'Ford', '03.jpg', true); | ||
insert into `vehicle` (`title`, `plate`, `year`, `owner`, `renavam`, `manufacturer`, `photo`, `active`) | ||
values ('Uno', 'HHH4865', 2008, 'Paulo', '11189637560', 'Fiat', '04.jpg', true); | ||
|
||
|
||
-- *Booking new schedules: | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 1, adddate(now(), interval 01 minute), adddate(now(), interval 01 hour), 'Prestação de serviço', 1); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 1, adddate(now(), interval 05 hour), adddate(now(), interval 08 hour), 'Evento', 1); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 1, adddate(now(), interval 20 hour), adddate(now(), interval 22 hour), 'Duis aute irure dolor in reprehenderit', 1); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 2, adddate(now(), interval 25 hour), adddate(now(), interval 26 hour), 'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit', 1); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 1, adddate(now(), interval 10 hour), adddate(now(), interval 15 hour), 'Cillum dolore eu fugiat nulla pariatur', 1); | ||
values (1, 1, adddate(now(), interval 11 hour), adddate(now(), interval 15 hour), 'Cillum dolore eu fugiat nulla pariatur', 1); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 2, adddate(now(), interval 05 hour), adddate(now(), interval 09 hour), 'Aliquip ex ea commodo consequat', 2); | ||
values (1, 2, adddate(now(), interval 09 hour), adddate(now(), interval 10 hour), 'Aliquip ex ea commodo consequat', 2); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
values (1, 3, adddate(now(), interval 32 hour), adddate(now(), interval 50 hour), 'Ut enim ad minim veniam', 3); | ||
insert into `schedule` (`id_vehicle_fk`, `id_user_fk`, `start_date`, `end_date`, `reason`, `id_user_owner_fk`) | ||
|