(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