Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #14 from CampusDual/bug-fixes4
Browse files Browse the repository at this point in the history
Añadido v4.
  • Loading branch information
DeNgo authored Oct 21, 2024
2 parents 058e9fd + fff38ca commit c1736c4
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
DROP TABLE student;

CREATE TABLE students (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL,
surnames varchar(255) NOT NULL,
email varchar(255) NOT NULL
);

CREATE TABLE student_bootcamp (
id SERIAL PRIMARY KEY,
student_id int4 NULL,
bootcamp_id int4 NULL,
CONSTRAINT sb_student_id_bootcamp_id_key UNIQUE (student_id, bootcamp_id),
CONSTRAINT sb_bootcamp_id_fkey FOREIGN KEY (bootcamp_id) REFERENCES public.bootcamps(id),
CONSTRAINT sb_student_id_fkey FOREIGN KEY (student_id) REFERENCES public.students(id)
);

0 comments on commit c1736c4

Please sign in to comment.