app.organisation_pack_courante
Description
Section intitulée « Description »Version courante de chaque pack pour chaque organisation (adoption la plus récente). Respecte l’isolation par organisation.
Table Definition
CREATE VIEW organisation_pack_courante AS ( SELECT DISTINCT ON (organisation_id, pack_id) organisation_id, pack_id, pack_version_id, origine, adopte_le FROM app.organisation_pack ORDER BY organisation_id, pack_id, adopte_le DESC, id DESC)| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| organisation_id | uuid | true | Organisation concernée. | |||
| pack_id | uuid | true | Pack concerné. | |||
| pack_version_id | uuid | true | Version courante du pack pour l’organisation. | |||
| origine | text | true | Origine de l’adoption de la version courante. | |||
| adopte_le | timestamp with time zone | true | Date et heure de l’adoption de la version courante. |
Referenced Tables
Section intitulée « Referenced Tables »| Name | Columns | Comment | Type |
|---|---|---|---|
| app.organisation_pack | 8 | Historique des versions de pack adoptées par chaque organisation, en ajout seul. La ligne la plus récente d’un pack est la version courante de l’organisation. | BASE TABLE |
Relations
Section intitulée « Relations »erDiagram
"app.organisation_pack_courante" {
uuid organisation_id "Organisation concernée."
uuid pack_id "Pack concerné."
uuid pack_version_id "Version courante du pack pour l'organisation."
text origine "Origine de l'adoption de la version courante."
timestamp_with_time_zone adopte_le "Date et heure de l'adoption de la version courante."
}
Generated by tbls