Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
misuperproyecto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nahuel Mereles Rodriguez
misuperproyecto
Commits
2fb0fb68
Commit
2fb0fb68
authored
May 11, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
305fc37a
ee7931ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
README.txt
+64
-0
No files found.
README.txt
0 → 100644
View file @
2fb0fb68
CREATE TABLE Postulante (
id serial PRIMARY KEY,
nombre varchar,
apellido varchar(50),
nro_cedula int,
correo varchar(50),
telefono varchar(50),
direccion varchar(50),
experiencia_laboral BOOLEAN NOT NULL DEFAULT FALSE,
estudio_universitario BOOLEAN NOT NULL DEFAULT FALSE,
notebook BOOLEAN NOT NULL DEFAULT FALSE,
bootcamp_id int,
aceptado BOOLEAN NOT NULL DEFAULT FALSE
);
CREATE TABLE Postulante_Lenguaje (
id serial PRIMARY KEY,
id_postulante int,
id_lenguaje int
);
CREATE TABLE Lenguaje (
id serial PRIMARY KEY,
nombre_lenguaje varchar(50)
);
CREATE TABLE Bootcamp (
id serial PRIMARY KEY,
id_lenguaje int,
id_profesor int,
fecha_inicio date,
fecha_fin date,
descripcion varchar(200),
imagen varchar(50),
titulo varchar(50),
activo BOOLEAN NOT NULL DEFAULT TRUE
);
CREATE TABLE Profesor (
id serial PRIMARY KEY,
nombre varchar(50),
apellido varchar(50),
nro_cedula int,
correo varchar(50)
);
CREATE TABLE Usuario (
id serial PRIMARY KEY,
nombre varchar(50),
apellido varchar(50),
correo varchar(50),
contrasena varchar(50)
);
ALTER TABLE Bootcamp ADD FOREIGN KEY (id_lenguaje) REFERENCES Lenguaje(id);
ALTER TABLE Postulante_Lenguaje ADD FOREIGN KEY (id_postulante) REFERENCES Postulante (id);
ALTER TABLE Postulante_Lenguaje ADD FOREIGN KEY (id_lenguaje) REFERENCES Lenguaje (id);
ALTER TABLE Bootcamp ADD FOREIGN KEY (id_profesor) REFERENCES Profesor (id);
ALTER TABLE Postulante ADD FOREIGN KEY (bootcamp_id) REFERENCES Bootcamp(id);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment