Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ProyectoFinal-Bootcamp
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
ProyectoFinal-Bootcamp
Commits
ee7931ad
Commit
ee7931ad
authored
May 11, 2022
by
Jose Baez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script para postgres
parent
3a67e4f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
README.txt
+48
-48
No files found.
README.txt
View file @
ee7931ad
CREATE TABLE
"Postulante"
(
CREATE TABLE
Postulante
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"nombre"
varchar,
nombre
varchar,
"apellido" varchar
,
apellido varchar(50)
,
"nro_cedula"
int,
nro_cedula
int,
"correo" varchar
,
correo varchar(50)
,
"telefono" varchar
,
telefono varchar(50)
,
"direccion" varchar
,
direccion varchar(50)
,
"experiencia_laboral" boolean DEFAULT false
,
experiencia_laboral BOOLEAN NOT NULL DEFAULT FALSE
,
"estudio_universitario" boolean DEFAULT false
,
estudio_universitario BOOLEAN NOT NULL DEFAULT FALSE
,
"notebook" boolean DEFAULT false
,
notebook BOOLEAN NOT NULL DEFAULT FALSE
,
"bootcamp_id"
int,
bootcamp_id
int,
"aceptado" boolean DEFAULT false
aceptado BOOLEAN NOT NULL DEFAULT FALSE
);
);
CREATE TABLE
"Postulante_Lenguaje"
(
CREATE TABLE
Postulante_Lenguaje
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"id_postulante"
int,
id_postulante
int,
"id_lenguaje"
int
id_lenguaje
int
);
);
CREATE TABLE
"Lenguaje"
(
CREATE TABLE
Lenguaje
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"nombre_lenguaje" varchar
nombre_lenguaje varchar(50)
);
);
CREATE TABLE
"Bootcamp"
(
CREATE TABLE
Bootcamp
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"id_lenguaje"
int,
id_lenguaje
int,
"id_profesor"
int,
id_profesor
int,
"fecha_inicio"
date,
fecha_inicio
date,
"fecha_fin"
date,
fecha_fin
date,
"descripcion" varchar
,
descripcion varchar(200)
,
"imagen" varchar
,
imagen varchar(50)
,
"titulo" varchar
,
titulo varchar(50)
,
"activo" boolean DEFAULT true
activo BOOLEAN NOT NULL DEFAULT TRUE
);
);
CREATE TABLE
"Profesor"
(
CREATE TABLE
Profesor
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"nombre" varchar
,
nombre varchar(50)
,
"apellido" varchar
,
apellido varchar(50)
,
"nro_cedula"
int,
nro_cedula
int,
"correo" varchar
correo varchar(50)
);
);
CREATE TABLE
"Usuario"
(
CREATE TABLE
Usuario
(
"id" int
PRIMARY KEY,
id serial
PRIMARY KEY,
"nombre" varchar
,
nombre varchar(50)
,
"apellido" varchar
,
apellido varchar(50)
,
"correo" varchar
,
correo varchar(50)
,
"password" varchar
contrasena varchar(50)
);
);
ALTER TABLE
"Bootcamp" ADD FOREIGN KEY ("id_lenguaje") REFERENCES "Lenguaje" ("id"
);
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_postulante) REFERENCES Postulante (id
);
ALTER TABLE
"Postulante_Lenguaje" ADD FOREIGN KEY ("id_lenguaje") REFERENCES "Lenguaje" ("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
Bootcamp ADD FOREIGN KEY (id_profesor) REFERENCES Profesor (id
);
ALTER TABLE "Postulante" ADD FOREIGN KEY ("bootcamp_id") REFERENCES "Bootcamp" ("id");
ALTER TABLE Postulante ADD FOREIGN KEY (bootcamp_id) REFERENCES Bootcamp(id);
\ No newline at end of file
\ 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