-- Fixtures for naming rules (NAM001-NAM003). -- Quoted identifiers preserve case in the PG parse tree; unquoted identifiers -- are always folded to lowercase by the parser and cannot violate snake_case. -- NAM001: quoted CamelCase table name CREATE TABLE "UserAccounts" ( -- NAM002: quoted camelCase column names "userId" integer PRIMARY KEY, "emailAddress" text NOT NULL ); -- NAM003: quoted CamelCase function name CREATE FUNCTION "GetUserById"(p_id integer) RETURNS text LANGUAGE sql AS $$ SELECT email FROM users WHERE id = p_id $$;