Skip to content

Commit

Permalink
feat: add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Jan 14, 2024
1 parent 74582ac commit 65c08f5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
27 changes: 26 additions & 1 deletion backend/src/main/resources/dbchangelog/data/column_metadata.csv
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
id,column_name,column_description,column_primary_key,reference_table_name,reference_table_column,table_metadata_id
id,column_name,column_description,column_primary_key,reference_table_name,reference_table_column,table_metadata_id
1,artist_id,primary key of the table,true,,,1
2,full_name,full name of the artist,false,,,1
3,first_name,first name of the artist,false,,,1
4,middle_names,middle name of the artist,false,,,1
5,last_name,last name of the artist,false,,,1
6,nationality,nationality of the artist,false,,,1
7,style,style of work of the artist,false,,,1
8,birth,birth year of the artist,false,,,1
9,death,death year of the artist,false,,,1
10,id,primary key of the table,true,,,2
11,name,the museum name,false,,,2
12,address,the address of the museum,false,,,2
13,city,the city the museum is located in,false,,,2
14,state,the state the museum is located in,false,,,2
15,postal,the postal code of the museum,false,,,2
16,country,the country the museum is located in,false,,,2
17,phone,the phone number of the museum,false,,,2
18,url,the url of the homepage of the museum,false,,,2
19,id,primary key of the table,true,,,3
20,name,name of the art work,false,,,3
21,artist_id,id in the artist table,false,artist,id,3
22,style,style of the art work,false,,,3
23,museum_id,id of the museum in the museum table,false,museum,id,3
24,width,the width of the art work,false,,,3
25,height,the height of the art work,false,,,3
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
id,table_name,table_description,table_ddl
id,table_name,table_description,table_ddl
1,artist,The table contains the information of the artists,"CREATE TABLE public.artist ( id int8 NOT NULL, full_name varchar(120) NULL, first_name varchar(50) NULL, middle_name varchar(50) NULL, last_name varchar(70) NULL, nationality varchar(40) NULL, "style" varchar(50) NULL, birth int4 NULL, death int4 NULL, CONSTRAINT artist_pkey PRIMARY KEY (id) )"
2,museum,The table contains the information of the museums,"CREATE TABLE public.museum ( id int8 NOT NULL, "name" varchar(50) NULL, address varchar(70) NULL, city varchar(50) NULL, state varchar(50) NULL, postal varchar(10) NULL, country varchar(50) NULL, phone varchar(30) NULL, url varchar(256) NULL, CONSTRAINT museum_pkey PRIMARY KEY (id) )"
3,work,The table contains the information of the art works,"CREATE TABLE public."work" (id int8 NOT NULL, "name" varchar(80) NULL, artist_id int8 NOT NULL, "style" varchar(40) NULL, museum_id int8 NOT NULL, width int4 NULL, height int4 NULL, CONSTRAINT work_pkey PRIMARY KEY (id) )"

0 comments on commit 65c08f5

Please sign in to comment.