-- MySQL dump 10.13  Distrib 8.0.28, for macos11 (x86_64)
--
-- Host: localhost    Database: qaio
-- ------------------------------------------------------
-- Server version	8.0.28

/*!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 */;
/*!50503 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `client`
--

DROP TABLE IF EXISTS `client`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `client` (
  `id` int NOT NULL AUTO_INCREMENT,
  `identreprise_id` int NOT NULL,
  `ref_client` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
  `raison_sociale` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
  `adresse_facturation` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code_postale_facturation` int NOT NULL,
  `ville_facturation` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `pays_facturation` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `adresse_livraison` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `code_postal_livraison` int NOT NULL,
  `n_tva` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `adresse_mail` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `telephone` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `custom_field1` int DEFAULT NULL,
  `custom_field2` int DEFAULT NULL,
  `custom_field3` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field4` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customfield5` date DEFAULT NULL,
  `id_user_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C7440455DD34B831` (`identreprise_id`),
  KEY `IDX_C744045579F37AE5` (`id_user_id`),
  CONSTRAINT `FK_C744045579F37AE5` FOREIGN KEY (`id_user_id`) REFERENCES `user` (`id`),
  CONSTRAINT `FK_C7440455DD34B831` FOREIGN KEY (`identreprise_id`) REFERENCES `entreprise` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `client`
--

LOCK TABLES `client` WRITE;
/*!40000 ALTER TABLE `client` DISABLE KEYS */;
/*!40000 ALTER TABLE `client` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-04-29  9:28:32
