From 65c08f5bcdf9354b7e20f0b673469ea58e176dab Mon Sep 17 00:00:00 2001 From: Angular2guy Date: Sun, 14 Jan 2024 14:15:27 +0100 Subject: [PATCH] feat: add metadata --- .../dbchangelog/data/column_metadata.csv | 27 ++++++++++++++++++- .../dbchangelog/data/table_metadata.csv | 5 +++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/backend/src/main/resources/dbchangelog/data/column_metadata.csv b/backend/src/main/resources/dbchangelog/data/column_metadata.csv index 0cbac46..b68d90d 100644 --- a/backend/src/main/resources/dbchangelog/data/column_metadata.csv +++ b/backend/src/main/resources/dbchangelog/data/column_metadata.csv @@ -1 +1,26 @@ -id,column_name,column_description,column_primary_key,reference_table_name,reference_table_column,table_metadata_id \ No newline at end of file +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 \ No newline at end of file diff --git a/backend/src/main/resources/dbchangelog/data/table_metadata.csv b/backend/src/main/resources/dbchangelog/data/table_metadata.csv index 2485c43..0d35523 100644 --- a/backend/src/main/resources/dbchangelog/data/table_metadata.csv +++ b/backend/src/main/resources/dbchangelog/data/table_metadata.csv @@ -1 +1,4 @@ -id,table_name,table_description,table_ddl \ No newline at end of file +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) )" \ No newline at end of file