Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guttlein/80213582 update readme #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Doc/DiagramadeGantt.pdf
Binary file not shown.
Binary file added Doc/SRSv4.docx
Binary file not shown.
Binary file added Doc/carsapp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/salida.pdf
Binary file not shown.
Binary file added Doc/srsv1.docx
Binary file not shown.
Binary file added Doc/srsv2.docx
Binary file not shown.
Binary file added Doc/srsv3.docx
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Cars web app
HOLA!Cars web app
============
It's a web application used in a course of [Software Engineering] [se-site] in the [UNRC] [unrc] to teach concepts as

Expand Down
4 changes: 4 additions & 0 deletions config/insert.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
insert into carsapp_development.users (first_name,last_name,email,contrasena)values
("juan","perez","[email protected]","aaa"),
("pablo","gonzales","[email protected]","bbb"),
("fulano","asddd","[email protected]","ccc");
147 changes: 137 additions & 10 deletions config/schema.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,137 @@
-- Integrantes: W - X - Y - Z

DROP TABLE IF EXISTS users; -- Usuarios
CREATE TABLE users(
id INT(11) NOT NULL AUTO_INCREMENT,
email VARCHAR(60) UNIQUE,
first_name VARCHAR(56),
last_name VARCHAR(56),
CONSTRAINT users_pk PRIMARY KEY (id)
);
-- Integrantes: Emiliano Guttlein - Santiago Lapiana - Jorge Avedaño - Nicolas Boccolini
DROP schema if exists carsapp_development;
create schema carsapp_development;


DROP TABLE IF EXISTS carsapp_development.users;
CREATE TABLE carsapp_development.users(
id_user INT(11) NOT NULL AUTO_INCREMENT,
email VARCHAR(60) UNIQUE,
first_name VARCHAR(56),
last_name VARCHAR(56),
contrasena VARCHAR(60),
CONSTRAINT pk_users PRIMARY KEY (id_user));

DROP TABLE IF EXISTS carsapp_development.addresses;
CREATE TABLE carsapp_development.addresses(
id_address INT(11) NOT NULL AUTO_INCREMENT,
street varchar(56) NOT NULL,
city varchar(56),
province varchar(56),
postal_code varchar(6),
num INT(10),
CONSTRAINT pk_addresses PRIMARY KEY (id_address));

DROP TABLE IF EXISTS carsapp_development.users_addresses;
CREATE TABLE carsapp_development.users_addresses(
id_users_address INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
id_address INT(11),
CONSTRAINT pk_users_address PRIMARY KEY (id_users_address));
-- CONSTRAINT fk_addresses FOREIGN KEY (id_addresss) REFERENCES address (id_addresses) ON DELETE CASCADE ON UPDATE CASCADE);
-- CONSTRAINT fk_users FOREIGN KEY (id_user) REFERENCES users (id_users) ON DELETE CASCADE ON UPDATE CASCADE);

DROP TABLE IF EXISTS carsapp_development.vehicles;
CREATE TABLE carsapp_development.vehicles(
id_vehicle INT NOT NULL AUTO_INCREMENT,
patent VARCHAR(60),
mark VARCHAR(56),
model VARCHAR(56),
id_user INT(11),
color VARCHAR(20),
tipo VARCHAR(20),
cc INT(20),
isCoupe VARCHAR(10),
capacity INT(20),
CONSTRAINT pk_vehicle PRIMARY KEY (id_vehicle));
-- CONSTRAINT fk_vehicle_user FOREIGN KEY (id_user) REFERENCES users(id_users));

-- DROP TABLE IF EXISTS carsapp_development.cars;
-- CREATE TABLE carsapp_development.cars (
-- id_cars INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- isCoupe BOOL,
-- CONSTRAINT pk_cars PRIMARY KEY (id_cars));
-- CONSTRAINT fk_cars_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);

-- DROP TABLE IF EXISTS carsapp_development.motocicles;
-- CREATE TABLE carsapp_development.motocicles (
-- id_motocicles INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- cc INT,
-- CONSTRAINT pk_motocicles PRIMARY KEY (id_motocicles));
-- CONSTRAINT fk_motocicles_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);


-- DROP TABLE IF EXISTS carsapp_development.trucks;
-- CREATE TABLE carsapp_development.trucks (
-- id_trucks INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- capacity VARCHAR(20),
-- CONSTRAINT pk_trucks PRIMARY KEY (id_trucks));
-- CONSTRAINT fk_trucks_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);


-- DROP TABLE IF EXISTS carsapp_development.others;
-- CREATE TABLE carsapp_development.others (
-- id_others INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- transmission VARCHAR(12),
-- CONSTRAINT pk_others PRIMARY KEY (id_others));
-- CONSTRAINT fk_others_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);

DROP TABLE IF EXISTS carsapp_development.answers;
CREATE TABLE carsapp_development.answers(
id_answer INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
description VARCHAR(3000),
id_question INT(11),
CONSTRAINT pk_answers PRIMARY KEY (id_answer));
-- CONSTRAINT fk_answers_questions FOREIGN KEY (id_question) REFERENCES questions(id_question),
-- CONSTRAINT fk_user_answers FOREIGN KEY (id_user) REFERENCES users(id_users));

DROP TABLE IF EXISTS carsapp_development.questions;
CREATE TABLE carsapp_development.questions(
id_question INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
id_post INT(11),
description VARCHAR(3000),
CONSTRAINT pk_question PRIMARY KEY (id_question));
-- CONSTRAINT fk_posts_questions foreign key (id_post) REFERENCES posts(id_post) ON DELETE CASCADE ON UPDATE CASCADE,
-- CONSTRAINT fk_answers_questions FOREIGN KEY (id_answer) REFERENCES answers(id_answers) ON DELETE CASCADE ON UPDATE CASCADE,
-- CONSTRAINT fk_users_questions FOREIGN KEY (id_user) REFERENCES users(id_users) ON DELETE CASCADE ON UPDATE CASCADE);


DROP TABLE IF EXISTS carsapp_development.posts;
CREATE TABLE carsapp_development.posts(
id_post INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
id_address INT(11),
patent VARCHAR(60),
description VARCHAR(3000),
CONSTRAINT pk_posts PRIMARY KEY (id_post));
-- CONSTRAINT fk_user_post FOREIGN KEY (id_user) REFERENCES users (id_users),
-- CONSTRAINT fk_vehicle_post FOREIGN KEY (patent) REFERENCES vehicles (patents));

DROP TABLE IF EXISTS carsapp_development.messages;
CREATE TABLE carsapp_development.messages(
id_message INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
description VARCHAR(3000),
CONSTRAINT pk_message PRIMARY KEY (id_message));

DROP TABLE IF EXISTS carsapp_development.message_guests;
CREATE TABLE carsapp_development.message_guests(
id_messageGuest INT(11) NOT NULL AUTO_INCREMENT,
description VARCHAR(3000),
CONSTRAINT pk_messageGuest PRIMARY KEY (id_messageGuest));

-- DROP TABLE IF EXISTS carsapp_development.qualify;
-- CREATE TABLE carsapp_development.qualify(
-- id_qualify INT(11) NOT NULL AUTO_INCREMENT,
-- id_post INT(11),
-- id_user INT(11),
-- points INT,
-- CONSTRAINT pk_qualify PRIMARY KEY (id_qualify));
-- CONSTRAINT fk_posts_qualify FOREIGN KEY (id_post) REFERENCES posts(id_posts),
-- CONSTRAINT fk_users_qualify FOREIGN KEY (id_user) REFERENCES users(id_users));
130 changes: 130 additions & 0 deletions config/schema_test.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
-- Integrantes: Emiliano Guttlein - Santiago Lapiana - Jorge Avedaño - Nicolas Boccolini
DROP schema if exists carsapp_test;
create schema carsapp_test;


DROP TABLE IF EXISTS carsapp_test.users;
CREATE TABLE carsapp_test.users(
id_user INT(11) NOT NULL AUTO_INCREMENT,
email VARCHAR(60) UNIQUE,
first_name VARCHAR(56),
last_name VARCHAR(56),
contrasena VARCHAR(60),
CONSTRAINT pk_users PRIMARY KEY (id_user));

DROP TABLE IF EXISTS carsapp_test.addresses;
CREATE TABLE carsapp_test.addresses(
id_address INT(11) NOT NULL AUTO_INCREMENT,
street varchar(56) NOT NULL,
city varchar(56),
province varchar(56),
postal_code varchar(6),
num INT(10),
CONSTRAINT pk_addresses PRIMARY KEY (id_address));

DROP TABLE IF EXISTS carsapp_test.users_addresses;
CREATE TABLE carsapp_test.users_addresses(
id_users_address INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
id_address INT(11),
CONSTRAINT pk_users_address PRIMARY KEY (id_users_address));
-- CONSTRAINT fk_addresses FOREIGN KEY (id_addresss) REFERENCES address (id_addresses) ON DELETE CASCADE ON UPDATE CASCADE);
-- CONSTRAINT fk_users FOREIGN KEY (id_user) REFERENCES users (id_users) ON DELETE CASCADE ON UPDATE CASCADE);

DROP TABLE IF EXISTS carsapp_test.vehicles;
CREATE TABLE carsapp_test.vehicles(
id_vehicle INT NOT NULL AUTO_INCREMENT,
patent VARCHAR(60),
mark VARCHAR(56),
model VARCHAR(56),
id_user INT(11),
color VARCHAR(20),
tipo VARCHAR(20),
cc INT(20),
isCoupe VARCHAR(10),
capacity INT(20),
CONSTRAINT pk_vehicle PRIMARY KEY (id_vehicle));
-- CONSTRAINT fk_vehicle_user FOREIGN KEY (id_user) REFERENCES users(id_users));

-- DROP TABLE IF EXISTS carsapp_test.cars;
-- CREATE TABLE carsapp_test.cars (
-- id_cars INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- isCoupe BOOL,
-- CONSTRAINT pk_cars PRIMARY KEY (id_cars));
-- CONSTRAINT fk_cars_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);

-- DROP TABLE IF EXISTS carsapp_test.motocicles;
-- CREATE TABLE carsapp_test.motocicles (
-- id_motocicles INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- cc INT,
-- CONSTRAINT pk_motocicles PRIMARY KEY (id_motocicles));
-- CONSTRAINT fk_motocicles_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);


-- DROP TABLE IF EXISTS carsapp_test.trucks;
-- CREATE TABLE carsapp_test.trucks (
-- id_trucks INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- capacity VARCHAR(20),
-- CONSTRAINT pk_trucks PRIMARY KEY (id_trucks));
-- CONSTRAINT fk_trucks_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);


-- DROP TABLE IF EXISTS carsapp_test.others;
-- CREATE TABLE carsapp_test.others (
-- id_others INT(11) NOT NULL AUTO_INCREMENT,
-- patent VARCHAR(60),
-- transmission VARCHAR(12),
-- CONSTRAINT pk_others PRIMARY KEY (id_others));
-- CONSTRAINT fk_others_vehicle FOREIGN KEY (patent) REFERENCES vehicles (patents) ON DELETE CASCADE ON UPDATE CASCADE);

DROP TABLE IF EXISTS carsapp_test.answers;
CREATE TABLE carsapp_test.answers(
id_answer INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
description VARCHAR(3000),
id_question INT(11),
CONSTRAINT pk_answers PRIMARY KEY (id_answer));
-- CONSTRAINT fk_answers_questions FOREIGN KEY (id_question) REFERENCES questions(id_question),
-- CONSTRAINT fk_user_answers FOREIGN KEY (id_user) REFERENCES users(id_users));

DROP TABLE IF EXISTS carsapp_test.questions;
CREATE TABLE carsapp_test.questions(
id_question INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
id_post INT(11),
description VARCHAR(3000),
CONSTRAINT pk_question PRIMARY KEY (id_question));
-- CONSTRAINT fk_posts_questions foreign key (id_post) REFERENCES posts(id_post) ON DELETE CASCADE ON UPDATE CASCADE,
-- CONSTRAINT fk_answers_questions FOREIGN KEY (id_answer) REFERENCES answers(id_answers) ON DELETE CASCADE ON UPDATE CASCADE,
-- CONSTRAINT fk_users_questions FOREIGN KEY (id_user) REFERENCES users(id_users) ON DELETE CASCADE ON UPDATE CASCADE);


DROP TABLE IF EXISTS carsapp_test.posts;
CREATE TABLE carsapp_test.posts(
id_post INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
patent VARCHAR(60),
description VARCHAR(3000),
CONSTRAINT pk_posts PRIMARY KEY (id_post));
-- CONSTRAINT fk_user_post FOREIGN KEY (id_user) REFERENCES users (id_users),
-- CONSTRAINT fk_vehicle_post FOREIGN KEY (patent) REFERENCES vehicles (patents));

DROP TABLE IF EXISTS carsapp_test.messages;
CREATE TABLE carsapp_test.messages(
id_message INT(11) NOT NULL AUTO_INCREMENT,
id_user INT(11),
description VARCHAR(3000),
CONSTRAINT pk_message PRIMARY KEY (id_message));

-- DROP TABLE IF EXISTS carsapp_test.qualify;
-- CREATE TABLE carsapp_test.qualify(
-- id_qualify INT(11) NOT NULL AUTO_INCREMENT,
-- id_post INT(11),
-- id_user INT(11),
-- points INT,
-- CONSTRAINT pk_qualify PRIMARY KEY (id_qualify));
-- CONSTRAINT fk_posts_qualify FOREIGN KEY (id_post) REFERENCES posts(id_posts),
-- CONSTRAINT fk_users_qualify FOREIGN KEY (id_user) REFERENCES users(id_users));
2 changes: 2 additions & 0 deletions data/carsapp/nodes/0/_state/global-35
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:)
��meta-data��version$��uuidUzS0qa5c4R2q08wkGOoomOg�templates����
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/users/0/_state/state-70
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 70,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/users/0/index/_0.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/0/index/_0.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/0/index/_0.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/0/index/_1.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/0/index/_1.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/0/index/_1.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/users/1/_state/state-70
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 70,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/users/1/index/_0.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_0.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_0.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_1.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_1.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_1.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_2.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_2.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/1/index/_2.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/users/2/_state/state-70
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 70,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/users/2/index/_0.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/2/index/_0.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/2/index/_0.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/2/index/_1.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/2/index/_1.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/2/index/_1.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/users/3/_state/state-70
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 70,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/users/3/index/_0.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_0.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_0.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_1.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_1.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_1.si
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_2.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_2.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/3/index/_2.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/users/4/_state/state-70
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 70,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/users/4/index/_0.cfe
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/4/index/_0.cfs
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/users/4/index/_0.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Binary file added data/carsapp/nodes/0/indices/users/_state/state-2
Binary file not shown.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/vehicles/0/_state/state-58
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 58,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/vehicles/0/index/_0.cfe
Binary file not shown.
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/vehicles/0/index/_0.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/vehicles/1/_state/state-58
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 58,
"primary" : true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/vehicles/2/_state/state-58
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 58,
"primary" : true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/vehicles/3/_state/state-58
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 58,
"primary" : true
}
Binary file added data/carsapp/nodes/0/indices/vehicles/3/index/_0.cfe
Binary file not shown.
Binary file not shown.
Binary file added data/carsapp/nodes/0/indices/vehicles/3/index/_0.si
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions data/carsapp/nodes/0/indices/vehicles/4/_state/state-58
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version" : 58,
"primary" : true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Empty file.
Binary file added data/carsapp/nodes/0/indices/vehicles/_state/state-2
Binary file not shown.
Empty file added data/carsapp/nodes/0/node.lock
Empty file.
Loading