-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: db1.linx.ws
-- Creato il: Dic 11, 2019 alle 14:07
-- Versione del server: 10.3.10-MariaDB-1:10.3.10+maria~bionic
-- Versione PHP: 7.2.22

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `arcolab.lucreziasaas.com`
--

-- --------------------------------------------------------

--
-- Struttura della tabella `llx_project_facture_parts`
--

CREATE TABLE `llx_project_facture_parts` (
  `rowid` int(11) NOT NULL,
  `ref` varchar(30) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `datep` date DEFAULT NULL,
  `total_ht` double(24,8) NOT NULL DEFAULT 0.00000000,
  `label` varchar(255) DEFAULT NULL,
  `fk_soc` int(11) NOT NULL,
  `fk_projet` int(11) NOT NULL,
  `fk_facture_fourn_det` int(11) NOT NULL,
  `entity` int(11) NOT NULL DEFAULT 1,
  `note` text DEFAULT NULL,
  `fk_user_author` int(11) NOT NULL,
  `fk_user_modif` int(11) NOT NULL,
  `total_ttc` double(24,8) NOT NULL DEFAULT 0.00000000
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


--
-- Indici per le tabelle scaricate
--

--
-- Indici per le tabelle `llx_project_facture_parts`
--
ALTER TABLE `llx_project_facture_parts`
  ADD PRIMARY KEY (`rowid`),
  ADD UNIQUE KEY `fk_projet` (`fk_projet`,`fk_facture_fourn_det`),
  ADD KEY `fk_soc` (`fk_soc`),
  ADD KEY `fk_facture_fourn_det` (`fk_facture_fourn_det`);

--
-- AUTO_INCREMENT per le tabelle scaricate
--

--
-- AUTO_INCREMENT per la tabella `llx_project_facture_parts`
--
ALTER TABLE `llx_project_facture_parts`
  MODIFY `rowid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- Limiti per le tabelle scaricate
--

--
-- Limiti per la tabella `llx_project_facture_parts`
--
ALTER TABLE `llx_project_facture_parts`
  ADD CONSTRAINT `llx_project_facture_parts_ibfk_2` FOREIGN KEY (`fk_soc`) REFERENCES `llx_societe` (`rowid`),
  ADD CONSTRAINT `llx_project_facture_parts_ibfk_3` FOREIGN KEY (`fk_facture_fourn_det`) REFERENCES `llx_facture_fourn_det` (`rowid`),
  ADD CONSTRAINT `llx_project_facture_parts_ibfk_4` FOREIGN KEY (`fk_projet`) REFERENCES `llx_projet` (`rowid`);
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
