-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbd.sql
More file actions
34 lines (28 loc) · 772 Bytes
/
bd.sql
File metadata and controls
34 lines (28 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use itla_visitors;
-- create table usuarios
create table visitas (
id int auto_increment primary key,
nombre varchar(50) NOT NULL,
apellido varchar(50) NOT NULL,
carrera varchar(50) NOT NULL,
correo varchar(50),
edificio varchar(50) NOT NULL,
hora_entrada varchar(50) NOT NULL,
hora_salida varchar(50) NOT NULL,
motivo_visita text,
foto_visita longblob NOT NULL,
se_dirige varchar(50) NOT NULL
);
create table edificios (
id int auto_increment primary key,
descripcion varchar(50) not null
);
create table aulas (
id int auto_increment primary key,
id_edificio varchar(20),
descripcion varchar(50) not null
);
create table carrera (
id int auto_increment primary key,
descripcion varchar(100) not null
);