Backend: Updated Data Base structure.
This commit is contained in:
parent
f47f72ba17
commit
182fbb69e8
4 changed files with 61 additions and 0 deletions
16
backend/db/education.sql
Normal file
16
backend/db/education.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- public.education definition
|
||||
|
||||
-- Drop table
|
||||
|
||||
-- DROP TABLE public.education;
|
||||
|
||||
CREATE TABLE public.education (
|
||||
id serial4 NOT NULL,
|
||||
start_year time NULL,
|
||||
end_year time NULL,
|
||||
school text NULL,
|
||||
speciality text NULL,
|
||||
school_location text NULL,
|
||||
school_options text NULL,
|
||||
CONSTRAINT education_pkey PRIMARY KEY (id)
|
||||
);
|
16
backend/db/experience.sql
Normal file
16
backend/db/experience.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- public.experience definition
|
||||
|
||||
-- Drop table
|
||||
|
||||
-- DROP TABLE public.experience;
|
||||
|
||||
CREATE TABLE public.experience (
|
||||
id serial4 NOT NULL,
|
||||
job_position text NULL,
|
||||
job_description text NULL,
|
||||
enterprise text NULL,
|
||||
enterprise_location text NULL,
|
||||
start_year date NULL,
|
||||
end_year date NULL,
|
||||
CONSTRAINT experience_pkey PRIMARY KEY (id)
|
||||
);
|
16
backend/db/project.sql
Normal file
16
backend/db/project.sql
Normal file
|
@ -0,0 +1,16 @@
|
|||
-- public.project definition
|
||||
|
||||
-- Drop table
|
||||
|
||||
-- DROP TABLE public.project;
|
||||
|
||||
CREATE TABLE public.project (
|
||||
id serial4 NOT NULL,
|
||||
date_done date NULL,
|
||||
title text NULL,
|
||||
description text NULL,
|
||||
github_link text NULL,
|
||||
id_skills serial4 NOT NULL,
|
||||
CONSTRAINT project_pkey PRIMARY KEY (id),
|
||||
CONSTRAINT project_fk FOREIGN KEY (id_skills) REFERENCES public.skills(id)
|
||||
);
|
13
backend/db/skills.sql
Normal file
13
backend/db/skills.sql
Normal file
|
@ -0,0 +1,13 @@
|
|||
-- public.skills definition
|
||||
|
||||
-- Drop table
|
||||
|
||||
-- DROP TABLE public.skills;
|
||||
|
||||
CREATE TABLE public.skills (
|
||||
id serial4 NOT NULL,
|
||||
programming_lang text NULL,
|
||||
software text NULL,
|
||||
languages text NULL,
|
||||
CONSTRAINT skills_pkey PRIMARY KEY (id)
|
||||
);
|
Loading…
Add table
Reference in a new issue