<model>
    <mount>//OPNsense/Firewall/Category</mount>
    <version>1.0.0</version>
    <description>Firewall categories</description>
    <items>
        <categories>
            <category type="ArrayField">
                <name type="TextField">
                    <Required>Y</Required>
                    <Constraints>
                        <check001>
                            <ValidationMessage>A category with this name already exists.</ValidationMessage>
                            <type>UniqueConstraint</type>
                        </check001>
                    </Constraints>
                </name>
                <auto type="BooleanField"/>
                <color type="TextField">
                    <Mask>/^([0-9a-fA-F]){6,6}$/u</Mask>
                    <ValidationMessage>A valid color code consists of 6 hex digits</ValidationMessage>
                </color>
            </category>
        </categories>
    </items>
</model>
