You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoint composition xml update and loader enhancements for Conformance and Constraints (#1406)
* update XMl to be consistent with the Matter spec
* loading conformance and constraint of Matter Device Composition and inserting into the database
* cleanup
* update schema diagram
* fixing formatting with prettier update
Copy file name to clipboardexpand all lines: src-electron/db/zap-schema.sql
+3-2
Original file line number
Diff line number
Diff line change
@@ -394,10 +394,11 @@ CREATE TABLE IF NOT EXISTS "ENDPOINT_COMPOSITION" (
394
394
395
395
Columns:
396
396
DEVICE_COMPOSITION_ID: The primary key of the table, auto-incremented for each new record.
397
+
CODE: An integer representing the device code.
397
398
DEVICE_TYPE_REF: An integer that acts as a foreign key to reference a specific device type.
398
399
ENDPOINT_COMPOSITION_REF: A foreign key linking to the ENDPOINT_COMPOSITION table to specify the endpoint composition associated with this device.
399
400
CONFORMANCE: A text field describing the conformance level of the device composition.
400
-
CONSTRAINT: An integer representing any constraints applied to the device composition.
401
+
DEVICE_CONSTRAINT: An integer representing any constraints applied to the device composition.
401
402
402
403
Foreign Key Constraints:
403
404
The DEVICE_TYPE_REF column references the DEVICE_TYPE_ID column of the DEVICE_TYPE table. On deletion of a device type, corresponding records in this table are deleted (CASCADE).
@@ -409,7 +410,7 @@ CREATE TABLE IF NOT EXISTS "DEVICE_COMPOSITION" (
409
410
"DEVICE_TYPE_REF"integer,
410
411
"ENDPOINT_COMPOSITION_REF"integer,
411
412
"CONFORMANCE"text,
412
-
"CONSTRAINT"integer,
413
+
"DEVICE_CONSTRAINT"integer,
413
414
FOREIGN KEY ("ENDPOINT_COMPOSITION_REF") REFERENCES"ENDPOINT_COMPOSITION"("ENDPOINT_COMPOSITION_ID") ON DELETE CASCADE
414
415
FOREIGN KEY ("DEVICE_TYPE_REF") REFERENCES"DEVICE_TYPE"("DEVICE_TYPE_ID") ON DELETE CASCADE
0 commit comments