<?xml version="1.0" encoding="UTF-8"?>
<!--
 * 'This file is part of Informes plugin for FacturaScripts
 * Copyright (C) 2022-2025 Carlos García Gómez <carlos@facturascripts.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @author Carlos García Gómez <carlos@facturascripts.com>
-->
<table>
    <column>
        <name>columns</name>
        <type>integer</type>
        <default>6</default>
        <null>NO</null>
    </column>
    <column>
        <name>height</name>
        <type>integer</type>
        <default>250</default>
        <null>NO</null>
    </column>
    <column>
        <name>id</name>
        <type>serial</type>
    </column>
    <column>
        <name>idreport</name>
        <type>integer</type>
        <null>NO</null>
    </column>
    <column>
        <name>idreportboard</name>
        <type>integer</type>
        <null>NO</null>
    </column>
    <column>
        <name>sort</name>
        <type>integer</type>
    </column>
    <constraint>
        <name>reports_boards_lines_pkey</name>
        <type>PRIMARY KEY (id)</type>
    </constraint>
    <constraint>
        <name>uniq_reports_boards_lines</name>
        <type>UNIQUE (idreport,idreportboard)</type>
    </constraint>
    <constraint>
        <name>ca_reports_boards_lines_reports_boards</name>
        <type>FOREIGN KEY (idreportboard) REFERENCES reports_boards (id) ON DELETE CASCADE ON UPDATE CASCADE</type>
    </constraint>
    <constraint>
        <name>ca_reports_boards_lines_reports</name>
        <type>FOREIGN KEY (idreport) REFERENCES reports (id) ON DELETE CASCADE ON UPDATE CASCADE</type>
    </constraint>
</table>