Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-authorization/etc/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-authorization/etc/db_schema.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="authorization_role" resource="default" engine="innodb" comment="Admin Role Table">
        <column xsi:type="int" name="role_id" unsigned="true" nullable="false" identity="true"
                comment="Role ID"/>
        <column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
                default="0" comment="Parent Role ID"/>
        <column xsi:type="smallint" name="tree_level" unsigned="true" nullable="false" identity="false"
                default="0" comment="Role Tree Level"/>
        <column xsi:type="smallint" name="sort_order" unsigned="true" nullable="false" identity="false"
                default="0" comment="Role Sort Order"/>
        <column xsi:type="varchar" name="role_type" nullable="false" length="1" default="0" comment="Role Type"/>
        <column xsi:type="int" name="user_id" unsigned="true" nullable="false" identity="false" default="0"
                comment="User ID"/>
        <column xsi:type="varchar" name="user_type" nullable="true" length="16" comment="User Type"/>
        <column xsi:type="varchar" name="role_name" nullable="true" length="50" comment="Role Name"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="role_id"/>
        </constraint>
        <index referenceId="AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER" indexType="btree">
            <column name="parent_id"/>
            <column name="sort_order"/>
        </index>
        <index referenceId="AUTHORIZATION_ROLE_TREE_LEVEL" indexType="btree">
            <column name="tree_level"/>
        </index>
    </table>
    <table name="authorization_rule" resource="default" engine="innodb" comment="Admin Rule Table">
        <column xsi:type="int" name="rule_id" unsigned="true" nullable="false" identity="true"
                comment="Rule ID"/>
        <column xsi:type="int" name="role_id" unsigned="true" nullable="false" identity="false" default="0"
                comment="Role ID"/>
        <column xsi:type="varchar" name="resource_id" nullable="true" length="255" comment="Resource ID"/>
        <column xsi:type="varchar" name="privileges" nullable="true" length="20" comment="Privileges"/>
        <column xsi:type="varchar" name="permission" nullable="true" length="10" comment="Permission"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="rule_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="AUTHORIZATION_RULE_ROLE_ID_AUTHORIZATION_ROLE_ROLE_ID"
                    table="authorization_rule" column="role_id" referenceTable="authorization_role"
                    referenceColumn="role_id" onDelete="CASCADE"/>
        <index referenceId="AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID" indexType="btree">
            <column name="resource_id"/>
            <column name="role_id"/>
        </index>
        <index referenceId="AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID" indexType="btree">
            <column name="role_id"/>
            <column name="resource_id"/>
        </index>
    </table>
</schema>