#35956: Add composite foreign keys
-------------------------------------+-------------------------------------
     Reporter:  Csirmaz Bendegúz     |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by David Sanders):

 Just FYI to folks subscribed to this ticket:

 In addition to having composite FKs for multitenancy, there's also the new
 temporal PK/FK feature in Postgres 18 (currently beta) that will be useful
 for declaring temporal tables: https://www.depesz.com/2024/10/03/waiting-
 for-postgresql-18-add-temporal-foreign-key-contraints/

 tl;dr it adds the new `PERIOD` qualifier to FKs for declaring timestamp
 range constraints, which will likely be used in a composite key alongside
 the record identifier.

 Multitenancy I already use frequently and I anticipate I'll make quite
 good use of temporal keys :)
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35956#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019720a0b36c-2fd75e73-4878-43f2-86f8-59317f141d00-000000%40eu-central-1.amazonses.com.

Reply via email to