SlideShare a Scribd company logo
1 of 16
Download to read offline
UNIVERSIDAD DE LAS FUERZAS ARMADAS
“ESPE-L”
CARRERA DE INGENIERÍA EN SOFTWARE
Integrantes: Angel Echeverria y Edison Paca
Fecha: 31/07/2020
Materia: Programación web
Tema: Tablas relacionales con LARAVEL
 Modelo gráfico de la Base de Datos
 Script de la Base de Datos
create table campuses(
id integer auto_increment not null,
nombre varchar(50) not null,
direccion varchar(100) not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
create table bars(
id integer auto_increment not null,
campus_id integer null,
nombre varchar(50) not null,
abierto boolean not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
create table buzons(
id integer auto_increment not null,
bar_id integer not null,
fecha date not null,
descripcion text not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
create table menus(
id integer auto_increment not null,
bar_id integer not null,
nombre varchar(50) not null,
precio numeric(3,2) not null,
disponible boolean not null,
descripcion text null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
create table preferencias(
id integer auto_increment not null,
menu_id integer not null,
fecha date not null,
observacion text not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
create table snacks(
id integer auto_increment not null,
bar_id integer not null,
nombre varchar(50) not null,
precio numeric(3,2) not null,
disponible boolean not null,
created_at timestamp null,
updated_at timestamp null,
deleted_at timestamp null,
primary key (id)
);
alter table bars
add constraint fk_bars_campuses foreign key (campus_id)
references campuses (id)
on update restrict
on delete restrict;
alter table buzons
add constraint fk_buzons_bars foreign key (bar_id)
references bars (id)
on update restrict
on delete restrict;
alter table menus
add constraint fk_menus_bars foreign key (bar_id)
references bars (id)
on update restrict
on delete restrict;
alter table preferencias
add constraint fk_preferen_menus foreign key (menu_id)
references menus (id)
on update restrict
on delete restrict;
alter table snacks
add constraint fk_snacks_reference_bars foreign key (bar_id)
references bars (id)
on update restrict
on delete restrict;
 Capturas de pantallas de todas las operaciones debidamente
rotuladas con datos de ejemplos
1. HOME
2. LOGIN
3. REGISTER
4. VERIFY
5. VIEW PUBLIC
6. CAMPUS
a. CREATE
b. READ
c. EDIT
d. DELETE
7. BAR
a. CREATE
b. READ
c. EDIT
d. DELETE
8. MENU
a. CREATE
b. READ
c. EDIT
d. DELETE
9. SNACK
a. CREATE
b. READ
c. EDIT
d. DELETE
10. BUZON
a. CREATE
b. READ
c. EDIT
d. DELETE
11. PREFERENCIAS
a. CREATE
b. READ
c. EDIT
d. DELETE

More Related Content

More from FUNDET ECUADOR

Timbre electromagnético y tren magnético
Timbre electromagnético y tren magnéticoTimbre electromagnético y tren magnético
Timbre electromagnético y tren magnéticoFUNDET ECUADOR
 
Laboratorio circuitos electricos y simulaciones solenoide
Laboratorio circuitos electricos y simulaciones solenoideLaboratorio circuitos electricos y simulaciones solenoide
Laboratorio circuitos electricos y simulaciones solenoideFUNDET ECUADOR
 
Definición, estructura Estudios de Caso
Definición, estructura Estudios de CasoDefinición, estructura Estudios de Caso
Definición, estructura Estudios de CasoFUNDET ECUADOR
 
Revisión de Preliminar de la literatura
Revisión de Preliminar de la literatura Revisión de Preliminar de la literatura
Revisión de Preliminar de la literatura FUNDET ECUADOR
 
Suma de numeros extensos con listas doblemente enlazadas
Suma de numeros extensos con listas doblemente enlazadasSuma de numeros extensos con listas doblemente enlazadas
Suma de numeros extensos con listas doblemente enlazadasFUNDET ECUADOR
 
Calculo Vectorial Jacobiano
Calculo Vectorial JacobianoCalculo Vectorial Jacobiano
Calculo Vectorial JacobianoFUNDET ECUADOR
 
Infografía Cloud Computing
Infografía Cloud Computing Infografía Cloud Computing
Infografía Cloud Computing FUNDET ECUADOR
 
Dilatación de sólidos y Termodinamica
Dilatación de sólidos y TermodinamicaDilatación de sólidos y Termodinamica
Dilatación de sólidos y TermodinamicaFUNDET ECUADOR
 
Programación Nativa de un CRUD
Programación Nativa de un CRUD Programación Nativa de un CRUD
Programación Nativa de un CRUD FUNDET ECUADOR
 
Estructura de datos PILAS
Estructura de datos PILASEstructura de datos PILAS
Estructura de datos PILASFUNDET ECUADOR
 
Infografia farmacia laravel
Infografia farmacia laravelInfografia farmacia laravel
Infografia farmacia laravelFUNDET ECUADOR
 
Infografia empleados laravel
Infografia empleados laravelInfografia empleados laravel
Infografia empleados laravelFUNDET ECUADOR
 

More from FUNDET ECUADOR (14)

Timbre electromagnético y tren magnético
Timbre electromagnético y tren magnéticoTimbre electromagnético y tren magnético
Timbre electromagnético y tren magnético
 
Campos vectoriales
Campos vectorialesCampos vectoriales
Campos vectoriales
 
Laboratorio circuitos electricos y simulaciones solenoide
Laboratorio circuitos electricos y simulaciones solenoideLaboratorio circuitos electricos y simulaciones solenoide
Laboratorio circuitos electricos y simulaciones solenoide
 
Definición, estructura Estudios de Caso
Definición, estructura Estudios de CasoDefinición, estructura Estudios de Caso
Definición, estructura Estudios de Caso
 
Revisión de Preliminar de la literatura
Revisión de Preliminar de la literatura Revisión de Preliminar de la literatura
Revisión de Preliminar de la literatura
 
Suma de numeros extensos con listas doblemente enlazadas
Suma de numeros extensos con listas doblemente enlazadasSuma de numeros extensos con listas doblemente enlazadas
Suma de numeros extensos con listas doblemente enlazadas
 
Calculo Vectorial Jacobiano
Calculo Vectorial JacobianoCalculo Vectorial Jacobiano
Calculo Vectorial Jacobiano
 
Infografía Cloud Computing
Infografía Cloud Computing Infografía Cloud Computing
Infografía Cloud Computing
 
XML y JSON
XML y JSONXML y JSON
XML y JSON
 
Dilatación de sólidos y Termodinamica
Dilatación de sólidos y TermodinamicaDilatación de sólidos y Termodinamica
Dilatación de sólidos y Termodinamica
 
Programación Nativa de un CRUD
Programación Nativa de un CRUD Programación Nativa de un CRUD
Programación Nativa de un CRUD
 
Estructura de datos PILAS
Estructura de datos PILASEstructura de datos PILAS
Estructura de datos PILAS
 
Infografia farmacia laravel
Infografia farmacia laravelInfografia farmacia laravel
Infografia farmacia laravel
 
Infografia empleados laravel
Infografia empleados laravelInfografia empleados laravel
Infografia empleados laravel
 

Recently uploaded

Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 

Recently uploaded (20)

Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 

Tablas relaciones proyecto Laravel

  • 1. UNIVERSIDAD DE LAS FUERZAS ARMADAS “ESPE-L” CARRERA DE INGENIERÍA EN SOFTWARE Integrantes: Angel Echeverria y Edison Paca Fecha: 31/07/2020 Materia: Programación web Tema: Tablas relacionales con LARAVEL
  • 2.  Modelo gráfico de la Base de Datos  Script de la Base de Datos create table campuses( id integer auto_increment not null, nombre varchar(50) not null, direccion varchar(100) not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null, primary key (id) ); create table bars( id integer auto_increment not null, campus_id integer null, nombre varchar(50) not null, abierto boolean not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null, primary key (id) ); create table buzons( id integer auto_increment not null,
  • 3. bar_id integer not null, fecha date not null, descripcion text not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null, primary key (id) ); create table menus( id integer auto_increment not null, bar_id integer not null, nombre varchar(50) not null, precio numeric(3,2) not null, disponible boolean not null, descripcion text null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null, primary key (id) ); create table preferencias( id integer auto_increment not null, menu_id integer not null, fecha date not null, observacion text not null, created_at timestamp null, updated_at timestamp null,
  • 4. deleted_at timestamp null, primary key (id) ); create table snacks( id integer auto_increment not null, bar_id integer not null, nombre varchar(50) not null, precio numeric(3,2) not null, disponible boolean not null, created_at timestamp null, updated_at timestamp null, deleted_at timestamp null, primary key (id) ); alter table bars add constraint fk_bars_campuses foreign key (campus_id) references campuses (id) on update restrict on delete restrict; alter table buzons add constraint fk_buzons_bars foreign key (bar_id) references bars (id) on update restrict on delete restrict; alter table menus add constraint fk_menus_bars foreign key (bar_id) references bars (id) on update restrict on delete restrict;
  • 5. alter table preferencias add constraint fk_preferen_menus foreign key (menu_id) references menus (id) on update restrict on delete restrict; alter table snacks add constraint fk_snacks_reference_bars foreign key (bar_id) references bars (id) on update restrict on delete restrict;  Capturas de pantallas de todas las operaciones debidamente rotuladas con datos de ejemplos 1. HOME
  • 6. 2. LOGIN 3. REGISTER 4. VERIFY 5. VIEW PUBLIC