-- name: GetCompanyBrand :one SELECT * FROM company_brand WHERE company_id = $1 LIMIT 1; -- name: UpsertCompanyBrand :one INSERT INTO company_brand ( company_id, voice_tone, dos, donts, primary_color, secondary_color, logo_url, preferred_terms, updated_at ) VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, now() ) ON CONFLICT (company_id) DO UPDATE SET voice_tone = EXCLUDED.voice_tone, dos = EXCLUDED.dos, donts = EXCLUDED.donts, primary_color = EXCLUDED.primary_color, secondary_color = EXCLUDED.secondary_color, logo_url = EXCLUDED.logo_url, preferred_terms = EXCLUDED.preferred_terms, updated_at = now() RETURNING *;