The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add sample on how to add multiple column foreign keys to the same table
Alejandro Foronda02edecc7bb69
diff --git a/web/spec/postgres.yml b/web/spec/postgres.ymlindex 28fd071994a..ffe7d6aae05 100644--- a/web/spec/postgres.yml+++ b/web/spec/postgres.yml@@ -111,6 +111,13 @@ pages:primary key (column_1, column_2));```+ - name: Multiple foreign keys to the same table+ sql: |+ ```sql+ alter table table_name+ add constraint constraint_name_1 foreign key (colum_1) references foreign_table(id),+ add constraint constraint_name_2 foreign key (colum_2) references foreign_table(id);+ ```- name: Delete a tablesql: |```sql