By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| constraint_catalog | constraint_schema | constraint_name | table_catalog | table_schema | table_name | column_name | ordinal_position | position_in_unique_constraint |
|---|---|---|---|---|---|---|---|---|
| db_1803946168 | public | profiles1_user_id_fkey | db_1803946168 | public | profiles1 | user_id | 1 | 1 |
| db_1803946168 | public | profiles1_pkey | db_1803946168 | public | profiles1 | profile_id | 1 | null |
| show_create_table |
|---|
| CREATE TABLE profiles1 ( profile_id integer NOT NULL, bio text, user_id integer NOT NULL ); |
| constraint_catalog | constraint_schema | constraint_name | table_catalog | table_schema | table_name | column_name | ordinal_position | position_in_unique_constraint |
|---|---|---|---|---|---|---|---|---|
| db_1803946168 | public | profiles2_user_id_fkey | db_1803946168 | public | profiles2 | user_id | 1 | 1 |
| db_1803946168 | public | profiles2_pkey | db_1803946168 | public | profiles2 | profile_id | 1 | null |
| show_create_table |
|---|
| CREATE TABLE profiles2 ( profile_id integer NOT NULL, bio text, user_id integer NOT NULL ); |