Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pedro Branco
TravelBuddy
Commits
06a62b39
Commit
06a62b39
authored
Feb 21, 2017
by
Jessica Suszek
Browse files
added uptodate schema
parent
39e4ef5a
Changes
5
Hide whitespace changes
Inline
Side-by-side
TravelPals/TravelPals/.idea/gradle.xml
View file @
06a62b39
...
...
@@ -5,7 +5,7 @@
<GradleProjectSettings>
<option
name=
"distributionType"
value=
"LOCAL"
/>
<option
name=
"externalProjectPath"
value=
"$PROJECT_DIR$"
/>
<option
name=
"gradleHome"
value=
"
C:\Program Files\Android\Android Studio\
gradle
\
gradle-2.14.1"
/>
<option
name=
"gradleHome"
value=
"
$APPLICATION_HOME_DIR$/
gradle
/
gradle-2.14.1"
/>
<option
name=
"modules"
>
<set>
<option
value=
"$PROJECT_DIR$"
/>
...
...
TravelPals/TravelPals/.idea/misc.xml
View file @
06a62b39
...
...
@@ -37,7 +37,7 @@
<ConfirmationsSetting
value=
"0"
id=
"Add"
/>
<ConfirmationsSetting
value=
"0"
id=
"Remove"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
sql/README.txt
0 → 100644
View file @
06a62b39
info to connect to the database
‘localhost',
'jsusz001',
'password',
\ No newline at end of file
sql/dummy_data.sql
0 → 100644
View file @
06a62b39
INSERT
INTO
user
VALUES
(
NULL
,
'pass1'
,
'bob123'
,
'email@'
,
'bob'
,
'22-JUN-95'
,
'London'
);
INSERT
INTO
myplan
VALUES
(
NULL
,
1
,
'Madrid'
,
'22-JUN-17'
,
'28-JUL-17'
,
22
,
'i like climbing'
,
1
);
sql/schema.sql
0 → 100644
View file @
06a62b39
DROP
TABLE
IF
EXISTS
myplan
,
tags
,
user
;
CREATE
TABLE
user
(
id
INT
AUTO_INCREMENT
,
password
VARCHAR
(
10
),
username
VARCHAR
(
45
),
email
VARCHAR
(
60
),
name
VARCHAR
(
60
),
dob
DATE
,
location
VARCHAR
(
40
),
picture
VARCHAR
(
100
),
PRIMARY
KEY
(
id
)
);
CREATE
TABLE
tags
(
id
INT
AUTO_INCREMENT
,
tag
VARCHAR
(
10
),
PRIMARY
KEY
(
id
)
);
CREATE
TABLE
myplan
(
id
INT
AUTO_INCREMENT
,
destination
VARCHAR
(
30
),
startDate
DATE
,
endDate
DATE
,
ageRange
INT
,
description
VARCHAR
(
250
),
user_id
INT
,
tags_id
INT
,
PRIMARY
KEY
(
id
),
FOREIGN
KEY
(
user_id
)
REFERENCES
user
(
id
)
ON
UPDATE
CASCADE
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
tags_id
)
REFERENCES
tags
(
id
)
ON
UPDATE
CASCADE
ON
DELETE
CASCADE
);
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