Entities
Overview of all database entities and their documentation.
Entity Relationship Diagram

List of Entities
- AuthUser – System/auth account (tenant root) identified by ZID.
- Sensor – Physical sensor device owned by an auth user and of a specific type.
- SensorType – Catalog of supported sensor types.
- RegCode – One-time registration codes tied to a sensor.
- SensorError – Error records reported by sensors.
- User – End user profile inside an auth tenant.
- UserSensor – Many-to-many mapping between users and sensors with validity start.
- Role – Named role assigned within a UserSensor context.
- UserRole – Assignment of a role to a user.
- MessageType – Types of business messages with an optional constraint schema.
- PermissionType – Namespaces/categories for permissions.
- Permission – Grants a permission for a message type to a role.
- LogType – Types/categories of logs.
- Log – Audit/log records linked to user/sensor context.
- FireStation – Fire station metadata and location, owned/created by a user.
- ExclusionArea – Polygon/rectangle area excluded from processing.
- Image – Stored image captured/associated with a user–sensor and type.
- ImageType – Catalog of image types.
- Alarm – Alarm event, optionally linked to a parent alarm, state, and station.
- AlarmState – Possible states for alarms.
- AlarmImage – Join table connecting images to alarms.