/
table_metadata.csv
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 2.
7 lines (7 loc) · 1.75 KB
/
table_metadata.csv
1
2
3
4
5
6
7
id,table_name,table_description,table_ddl
1,artist,"The table contains the information of the artists, creators","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, gallery, exhibition","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 artworks, pictures, sculptures, drawings, exhibits","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) )"
4,museum_hours,"The table contains the information of the opening hours of the museums","CREATE TABLE public.museum_hours (museum_id int8 NOT NULL, ""day"" varchar(10) NULL, ""open"" varchar(12) NULL, ""close"" varchar(12) NULL )"
5,subject,"The table contains the information of the subjects, matters, fields, contents","CREATE TABLE public.subject ( work_id int8 NOT NULL, subject varchar(50) NULL )"
6,work_link,"The table contains the information of the links to the image of the artwork","CREATE TABLE public.work_link ( work_id int8 NOT NULL, ""name"" varchar(80) NULL, artist_id int8 NOT NULL, ""style"" varchar(40) NULL, museum_id int8 NOT NULL, image_link varchar(256) NULL )"