Help me fix the following postgesql tables. I like the awards, content person and…
- User
Help me fix the following postgesql tables. I like the awards, content person and programs to be separate tables. # Composite type definitions CREATE TYPE address_type AS ( street TEXT, city TEXT, state TEXT, postal_code TEXT, country TEXT );
CREATE TYPE award_type AS ( award_name TEXT, year INTEGER, issuing_organization TEXT, award_path TEXT );
CREATE TYPE contact_person_type AS ( first_name TEXT, last_name TEXT, email TEXT, phone TEXT, role TEXT );
CREATE TYPE telephone_type AS ( country_code TEXT, area_code TEXT, telephone_number TEXT );
CREATE TYPE program_type AS ( Program_id TEXT, program_name TEXT, program_status TEXT );
Product Makers table
CREATE TABLE Product_Maker ( Product_Maker_id SERIAL PRIMARY KEY, business_name TEXT NOT NULL, business_registration_path TEXT NOT NULL, year_incorporated TEXT NOT NULL, founder_CEO TEXT NOT NULL, website TEXT NOT NULL, category TEXT NOT NULL, office_address address_type, warehouse_address address_type, telephone telephone_type, awards award_type[], contact_persons contact_person_type[], validation_status BOOLEAN NOT NULL, last_validation_date DATE NOT NULL, programs program_type[], created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, created_by TEXT NOT NULL, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP TSI_User_Info_id TEXT REFERENCES TSI_User_Info(TSI_User_Info_id) );
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.