Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pa165-airport-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Petr Kabourek
pa165-airport-manager
Commits
e20aac82
There was an error fetching the commit references. Please try again later.
Commit
e20aac82
authored
10 months ago
by
xkromm
Browse files
Options
Downloads
Patches
Plain Diff
updated hr seed and clean
parent
f2145cb8
No related branches found
No related tags found
1 merge request
!21
Db
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db-management/clean/clean-hr-service.sql
+2
-2
2 additions, 2 deletions
db-management/clean/clean-hr-service.sql
db-management/seed/seed-hr-service.sql
+12
-12
12 additions, 12 deletions
db-management/seed/seed-hr-service.sql
with
14 additions
and
14 deletions
db-management/clean/clean-hr-service.sql
+
2
−
2
View file @
e20aac82
DELETE
*
FROM
language
;
DELETE
*
FROM
pilot_licence
;
DELETE
*
FROM
stewar
;
DELETE
*
FROM
pilot
s
;
DELETE
*
FROM
stewar
d
;
DELETE
*
FROM
pilot
;
DELETE
*
FROM
employee
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
db-management/seed/seed-hr-service.sql
+
12
−
12
View file @
e20aac82
...
...
@@ -31,47 +31,47 @@ VALUES ('1a4b99a2-512c-4e89-846b-91f3e5a1b6c2', 4); -- AIRBUS_A310
INSERT
INTO
employee
(
id
,
name
,
surname
,
gender
,
dateOfBirth
,
hired
)
VALUES
(
'1d2a647c-8c3a-4e6f-814a-6a7f1c58c97e'
,
'James'
,
'Smith'
,
TRUE
,
'1980-05-22'
,
'2010-04-12'
);
INSERT
INTO
pilot
s
(
employee_id
)
INSERT
INTO
pilot
(
employee_id
)
VALUES
(
'1d2a647c-8c3a-4e6f-814a-6a7f1c58c97e'
);
INSERT
INTO
employee
(
id
,
name
,
surname
,
gender
,
dateOfBirth
,
hired
)
VALUES
(
'5e8b8d1a-531d-45e3-8efc-7e2f437b5f28'
,
'Linda'
,
'Taylor'
,
FALSE
,
'1985-08-14'
,
'2012-11-09'
);
INSERT
INTO
pilot
s
(
employee_id
)
INSERT
INTO
pilot
(
employee_id
)
VALUES
(
'5e8b8d1a-531d-45e3-8efc-7e2f437b5f28'
);
INSERT
INTO
employee
(
id
,
name
,
surname
,
gender
,
dateOfBirth
,
hired
)
VALUES
(
'73f9c9d5-718f-4fae-9910-49cfcd1b4503'
,
'Samantha'
,
'Brown'
,
FALSE
,
'1990-02-10'
,
'2015-06-18'
);
INSERT
INTO
steward
s
(
employee_id
)
INSERT
INTO
steward
(
employee_id
)
VALUES
(
'73f9c9d5-718f-4fae-9910-49cfcd1b4503'
);
INSERT
INTO
employee
(
id
,
name
,
surname
,
gender
,
dateOfBirth
,
hired
)
VALUES
(
'4a7e9390-8e54-4b15-9db3-3a945b1e0216'
,
'Michael'
,
'Wilson'
,
TRUE
,
'1987-11-30'
,
'2013-09-27'
);
INSERT
INTO
steward
s
(
employee_id
)
INSERT
INTO
steward
(
employee_id
)
VALUES
(
'4a7e9390-8e54-4b15-9db3-3a945b1e0216'
);
INSERT
INTO
steward
_languages
(
steward_id
,
language_id
)
INSERT
INTO
steward
(
steward_id
,
language_id
)
VALUES
(
'73f9c9d5-718f-4fae-9910-49cfcd1b4503'
,
'f1d6b0f0-5d1f-4a97-9db1-7c9d582dd73b'
);
-- Samantha knows English
INSERT
INTO
steward
_languages
(
steward_id
,
language_id
)
INSERT
INTO
steward
(
steward_id
,
language_id
)
VALUES
(
'73f9c9d5-718f-4fae-9910-49cfcd1b4503'
,
'0a8d76c1-ff1f-42a1-8058-1c78e2b7e738'
);
-- Samantha knows Spanish
INSERT
INTO
steward
_languages
(
steward_id
,
language_id
)
INSERT
INTO
steward
(
steward_id
,
language_id
)
VALUES
(
'4a7e9390-8e54-4b15-9db3-3a945b1e0216'
,
'fb5d7a2c-06ef-4d0e-8e18-4a90f79dfd57'
);
-- Michael knows French
INSERT
INTO
steward
_languages
(
steward_id
,
language_id
)
INSERT
INTO
steward
(
steward_id
,
language_id
)
VALUES
(
'4a7e9390-8e54-4b15-9db3-3a945b1e0216'
,
'64b3e0b6-9fa7-4f2e-8d41-9931d5f094b4'
);
-- Michael knows German
INSERT
INTO
pilot
_licences
(
pilot_id
,
pilot_licence_id
)
INSERT
INTO
pilot
(
pilot_id
,
pilot_licence_id
)
VALUES
(
'1d2a647c-8c3a-4e6f-814a-6a7f1c58c97e'
,
'2f6d9f29-4d36-411a-86ed-f53c16fc8f2c'
);
-- James has CESSNA license
INSERT
INTO
pilot
_licences
(
pilot_id
,
pilot_licence_id
)
INSERT
INTO
pilot
(
pilot_id
,
pilot_licence_id
)
VALUES
(
'1d2a647c-8c3a-4e6f-814a-6a7f1c58c97e'
,
'c2b4e354-5e45-4f7f-87d2-c0a8e8b45010'
);
-- James has AIRBUS_A380 license
INSERT
INTO
pilot
_licences
(
pilot_id
,
pilot_licence_id
)
INSERT
INTO
pilot
(
pilot_id
,
pilot_licence_id
)
VALUES
(
'5e8b8d1a-531d-45e3-8efc-7e2f437b5f28'
,
'fa1c35d4-00df-41b1-b45e-ecbd57b823bb'
);
-- Linda has AIRBUS_A350 license
INSERT
INTO
pilot
_licences
(
pilot_id
,
pilot_licence_id
)
INSERT
INTO
pilot
(
pilot_id
,
pilot_licence_id
)
VALUES
(
'5e8b8d1a-531d-45e3-8efc-7e2f437b5f28'
,
'ae8d4a27-0d56-4b8f-8d1e-9461d1a6a8f0'
);
-- Linda has AIRBUS_A320 license
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment