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
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"
(
"id" int
PRIMARY KEY,
"nombre"
varchar,
"apellido" varchar
,
"nro_cedula"
int,
"correo" varchar
,
"telefono" varchar
,
"direccion" varchar
,
"experiencia_laboral" boolean DEFAULT false
,
"estudio_universitario" boolean DEFAULT false
,
"notebook" boolean DEFAULT false
,
"bootcamp_id"
int,
"aceptado" boolean DEFAULT false
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" int
PRIMARY KEY,
"id_postulante"
int,
"id_lenguaje"
int
CREATE TABLE
Postulante_Lenguaje
(
id serial
PRIMARY KEY,
id_postulante
int,
id_lenguaje
int
);
CREATE TABLE
"Lenguaje"
(
"id" int
PRIMARY KEY,
"nombre_lenguaje" varchar
CREATE TABLE
Lenguaje
(
id serial
PRIMARY KEY,
nombre_lenguaje varchar(50)
);
CREATE TABLE
"Bootcamp"
(
"id" int
PRIMARY KEY,
"id_lenguaje"
int,
"id_profesor"
int,
"fecha_inicio"
date,
"fecha_fin"
date,
"descripcion" varchar
,
"imagen" varchar
,
"titulo" varchar
,
"activo" boolean DEFAULT true
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" int
PRIMARY KEY,
"nombre" varchar
,
"apellido" varchar
,
"nro_cedula"
int,
"correo" varchar
CREATE TABLE
Profesor
(
id serial
PRIMARY KEY,
nombre varchar(50)
,
apellido varchar(50)
,
nro_cedula
int,
correo varchar(50)
);
CREATE TABLE
"Usuario"
(
"id" int
PRIMARY KEY,
"nombre" varchar
,
"apellido" varchar
,
"correo" varchar
,
"password" varchar
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
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");
\ No newline at end of file
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