Commit 06a62b39 authored by Jessica Suszek's avatar Jessica Suszek

added uptodate schema

parent 39e4ef5a
......@@ -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$" />
......
......@@ -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">
......
info to connect to the database
‘localhost',
'jsusz001',
'password',
\ No newline at end of file
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);
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
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment