SQL Create statements 4/17/26
This commit is contained in:
7
OrganizationalUnitDescendants.sql
Normal file
7
OrganizationalUnitDescendants.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS OrganizationalUnitDescendants (
|
||||
OrgUnitId INT NOT NULL,
|
||||
DescendantOrgUnitId INT NOT NULL,
|
||||
PRIMARY KEY (OrgUnitId, DescendantOrgUnitId),
|
||||
INDEX idx_descendant (DescendantOrgUnitId),
|
||||
CONSTRAINT fk_oud_orgunit FOREIGN KEY (OrgUnitId) REFERENCES OrganizationalUnits(OrgUnitId)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
Reference in New Issue
Block a user