Files
qt5-legatus-legacy/Lts/Services/RecordingManagement/rec_service.xml
T
2026-08-13 18:33:10 +02:00

78 lines
3.1 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<service namespace="RecordingManagement" abbreviation="REC" procNames="RecordingManagement" exerciseDependency="Exercise" groups="ExercisePreparation,ExerciseExecution,ExercisePaused">
<rcs>
<Id Id="$Id$"/>
<HeadURL HeadURL="$HeadURL$"/>
<Author Author="$Author$"/>
</rcs>
<tables>
<table name="rec_recorded_topic" comment="All topics available for recording in an exercise and their recording state">
<column name="id" datatype="bigint" default="0" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="rec_topic_id" datatype="bigint" isForeignKey="1"/>
<column name="recording_type_id" datatype="integer" isForeignKey="1"/>
<column name="recorded" datatype="boolean" default="true"/>
<foreignKey name="FK_rec_topic_rec_recording_type">
<source table="rec_recorded_topic" column="recording_type_id"/>
<destination table="rec_recording_type" column="id"/>
</foreignKey>
<foreignKey name="FK_rec_recorded_topic_rec_topic">
<source table="rec_recorded_topic" column="rec_topic_id"/>
<destination table="rec_topic" column="id"/>
</foreignKey>
</table>
<table name="rec_recording_type">
<column name="id" datatype="integer" isPrimaryKey="1"/>
<column name="name" datatype="text"/>
</table>
<table name="rec_snapshot">
<column name="id" datatype="bigint" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="time_stamp" datatype="bigint"/>
<column name="topic_name" datatype="text"/>
<column name="svc_name" datatype="text"/>
<column name="rec_id_array" datatype="bigint[][]"/>
<constraint name="IDX_time_stamp" type="index">
<column name="time_stamp"/>
</constraint>
<constraint name="IDX_svc_topic_name" type="index">
<column name="svc_name"/>
<column name="topic_name"/>
</constraint>
</table>
<table name="rec_topic">
<column name="id" datatype="bigint" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="name" datatype="text"/>
</table>
</tables>
<views/>
<dbServiceStructs>
<serviceStruct name="RecSnapshot" table="rec_snapshot"/>
<serviceStruct name="RecTopic" table="rec_recorded_topic">
<function name="removeNewerEqual" returns="bool">
<parameter pos="1" name="data" type="const Database::RecSnapshot &amp;"/>
</function>
</serviceStruct>
<table name="rec_snapshot"/>
<table name="rec_recorded_topic" base="rec_topic"/>
<table name="rec_topic"/>
</dbServiceStructs>
<topicTypes/>
<functionTopics/>
<enumerations>
<enumeration name="RecordingType" table="rec_recording_type">
<attribute key="UnknownData" value="0"/>
<attribute key="SituationData" value="1"/>
<attribute key="ReportData" value="2"/>
<attribute key="EventData" value="3"/>
<attribute key="OtherData" value="4"/>
<attribute key="All" value="5"/>
</enumeration>
</enumerations>
<operatorRights offset="30"/>
</service>