Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
daaexample
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alejandro Gómez González
daaexample
Commits
2b987099
Commit
2b987099
authored
Mar 27, 2021
by
Alejandro Gómez González
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update mysql-with-inserts.sql
parent
21785083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
mysql-with-inserts.sql
db/mysql-with-inserts.sql
+12
-0
No files found.
db/mysql-with-inserts.sql
View file @
2b987099
...
...
@@ -15,6 +15,18 @@ CREATE TABLE `daaexample`.`users` (
PRIMARY
KEY
(
`login`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
CREATE
TABLE
`daaexample`
.
`pets`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`name`
varchar
(
50
)
NOT
NULL
,
`type`
varchar
(
50
)
NOT
NULL
,
`peopleID`
int
(
11
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`peopleID`
(
`peopleID`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
;
ALTER
TABLE
`pets`
ADD
CONSTRAINT
`pets_ibfk_1`
FOREIGN
KEY
(
`peopleID`
)
REFERENCES
`people`
(
`id`
);
CREATE
USER
IF
NOT
EXISTS
'daa'
@
'localhost'
IDENTIFIED
WITH
mysql_native_password
BY
'daa'
;
GRANT
ALL
ON
`daaexample`
.
*
TO
'daa'
@
'localhost'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment