Standalone - Add UserRole table
authorcolemanw <coleman@civicrm.org>
Sat, 9 Dec 2023 16:05:30 +0000 (11:05 -0500)
committercolemanw <coleman@civicrm.org>
Mon, 11 Dec 2023 18:33:37 +0000 (13:33 -0500)
commit633e1285f32c609f23d7ba3d6f4699d4ee66d901
treee5ddc22a39348a83f66e80ad6e74aba1b0a4dbb4
parent2a9e8974aeea7c7a24bc3c1c26cef18cbd52b9d8
Standalone - Add UserRole table

Adds bridge table to connect users with roles,
which makes joins and complex queries possible.
For ease-of-use this re-adds the civicrm_uf_match.roles field as a virtual calculated field.
ext/standaloneusers/CRM/Standaloneusers/BAO/Role.php
ext/standaloneusers/CRM/Standaloneusers/BAO/User.php
ext/standaloneusers/CRM/Standaloneusers/DAO/User.php
ext/standaloneusers/CRM/Standaloneusers/DAO/UserRole.php [new file with mode: 0644]
ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php
ext/standaloneusers/Civi/Api4/UserRole.php [new file with mode: 0644]
ext/standaloneusers/sql/auto_install.sql
ext/standaloneusers/sql/auto_uninstall.sql
ext/standaloneusers/xml/schema/CRM/Standaloneusers/User.xml
ext/standaloneusers/xml/schema/CRM/Standaloneusers/UserRole.entityType.php [new file with mode: 0644]
ext/standaloneusers/xml/schema/CRM/Standaloneusers/UserRole.xml [new file with mode: 0644]