-- MySQL dump 10.13  Distrib 8.0.32, for Linux (x86_64)
--
-- Host: 127.0.0.1    Database: opentalent
-- ------------------------------------------------------
-- Server version	5.5.5-10.4.26-MariaDB-1:10.4.26+maria~ubu2004

/*!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 `Access`
--

DROP TABLE IF EXISTS `Access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Access` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `organization_id` int(11) NOT NULL,
  `adminAccess` tinyint(1) NOT NULL DEFAULT 0,
  `superAdminAccess` tinyint(1) NOT NULL DEFAULT 0,
  `roles` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `personalizedRoles` tinyint(1) NOT NULL DEFAULT 0,
  `note` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `loginEnabled` tinyint(1) NOT NULL DEFAULT 0,
  `setting` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `activityYear` int(11) DEFAULT NULL,
  `waitingForValidation` tinyint(1) NOT NULL DEFAULT 0,
  `sharingPersonToRecover` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessFamily_id` int(11) DEFAULT NULL,
  `newAccess` tinyint(1) NOT NULL DEFAULT 0,
  `ielEnabled` tinyint(1) NOT NULL DEFAULT 0,
  `ielValidationDatetime` datetime DEFAULT NULL,
  `approveRulesProcedure` tinyint(1) NOT NULL DEFAULT 0,
  `receiveInformationsFromOrganization` tinyint(1) NOT NULL DEFAULT 0,
  `informationRetainedAndUsedDate` datetime DEFAULT NULL,
  `cguReadAndAcceptedDate` datetime DEFAULT NULL,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  `publicationDirector_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `person_organization_idx` (`person_id`,`organization_id`),
  KEY `IDX_1C52E62217BBB47` (`person_id`),
  KEY `IDX_1C52E6232C8A3DE` (`organization_id`),
  KEY `IDX_1C52E6227A5098` (`accessFamily_id`),
  KEY `IDX_1C52E623C702A27` (`educationNotationConfig_id`),
  KEY `IDX_1C52E6223F8928` (`publicationDirector_id`),
  CONSTRAINT `FK_1C52E62217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`),
  CONSTRAINT `FK_1C52E6223F8928` FOREIGN KEY (`publicationDirector_id`) REFERENCES `Parameters` (`id`),
  CONSTRAINT `FK_1C52E6227A5098` FOREIGN KEY (`accessFamily_id`) REFERENCES `AccessFamily` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1C52E6232C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_1C52E623C702A27` FOREIGN KEY (`educationNotationConfig_id`) REFERENCES `EducationNotationConfig` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=585639 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessBilling`
--

DROP TABLE IF EXISTS `AccessBilling`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessBilling` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `customerId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodicityPayment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `familyQuotient_id` int(11) DEFAULT NULL,
  `residenceArea_id` int(11) DEFAULT NULL,
  `adhesionChoice` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'APPLY_ADHESION',
  `adhesionAmount` double DEFAULT NULL,
  `accountBalance` double DEFAULT 0,
  `accountBalanceUpdateDate` date DEFAULT NULL,
  `reportPaymentsAmount` double DEFAULT 0,
  `billSchedule_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_9B594C724FEA67CF` (`access_id`),
  KEY `IDX_9B594C7224DE7AD6` (`familyQuotient_id`),
  KEY `IDX_9B594C72D6E8C61` (`residenceArea_id`),
  KEY `IDX_9B594C72EFE1393E` (`billSchedule_id`),
  CONSTRAINT `FK_9B594C7224DE7AD6` FOREIGN KEY (`familyQuotient_id`) REFERENCES `FamilyQuotient` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_9B594C724FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_9B594C72D6E8C61` FOREIGN KEY (`residenceArea_id`) REFERENCES `ResidenceArea` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_9B594C72EFE1393E` FOREIGN KEY (`billSchedule_id`) REFERENCES `BillSchedule` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=215339 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessCommunication`
--

DROP TABLE IF EXISTS `AccessCommunication`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessCommunication` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `culturalNewsletter` tinyint(1) NOT NULL DEFAULT 1,
  `adminNewsletter` tinyint(1) NOT NULL DEFAULT 1,
  `userNewsletter` tinyint(1) NOT NULL DEFAULT 1,
  `opentalentBusinessNewsletter` tinyint(1) NOT NULL DEFAULT 1,
  `partnerBusinessNewsletter` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_EA4272E14FEA67CF` (`access_id`),
  CONSTRAINT `FK_EA4272E14FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8460 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessFamily`
--

DROP TABLE IF EXISTS `AccessFamily`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessFamily` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107997 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessFamilyWish`
--

DROP TABLE IF EXISTS `AccessFamilyWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessFamilyWish` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `registrationCompleted` tinyint(1) NOT NULL DEFAULT 0,
  `registrationCompletedDateTime` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `registrationIsValidated` tinyint(1) NOT NULL DEFAULT 0,
  `closeRegistration` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23300 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessFictionalIntangible`
--

DROP TABLE IF EXISTS `AccessFictionalIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessFictionalIntangible` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `accessFamily_id` int(11) DEFAULT NULL,
  `fictionalIntangible_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_389E0E064FEA67CF` (`access_id`),
  KEY `IDX_389E0E0627A5098` (`accessFamily_id`),
  KEY `IDX_389E0E06E9805925` (`fictionalIntangible_id`),
  CONSTRAINT `FK_389E0E0627A5098` FOREIGN KEY (`accessFamily_id`) REFERENCES `AccessFamily` (`id`),
  CONSTRAINT `FK_389E0E064FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_389E0E06E9805925` FOREIGN KEY (`fictionalIntangible_id`) REFERENCES `FictionalIntangible` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44753 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessNetworkSetting`
--

DROP TABLE IF EXISTS `AccessNetworkSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessNetworkSetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `subscriptionCmfPaper` tinyint(1) NOT NULL DEFAULT 1,
  `numberPaperCopies` int(11) DEFAULT NULL,
  `receivesDigitalCmfNewletterAndInformation` tinyint(1) NOT NULL DEFAULT 1,
  `licenseType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `licenseRate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dateFirstEntry` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `subscriptionEducationalInformationCmfPaper` tinyint(1) NOT NULL DEFAULT 1,
  `subscriptionOtherInformationCmfPaper` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_2B2F65384FEA67CF` (`access_id`),
  CONSTRAINT `FK_2B2F65384FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=455391 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessSocial`
--

DROP TABLE IF EXISTS `AccessSocial`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessSocial` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `professionalStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeOfContract` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `assistedContract` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodUnit` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `socialSecurity` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `familySituation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dependentChildren` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipientNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `salaryNumber` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `attachmentService` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D51AF864FEA67CF` (`access_id`),
  CONSTRAINT `FK_D51AF864FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=13901 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessTmp`
--

DROP TABLE IF EXISTS `AccessTmp`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessTmp` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `mail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `confirmation_token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tokenGivenDate` datetime NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `informationRetainedAndUsed` tinyint(1) NOT NULL DEFAULT 0,
  `cgu` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_BFF81BF432C8A3DE` (`organization_id`),
  CONSTRAINT `FK_BFF81BF432C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9430 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AccessWish`
--

DROP TABLE IF EXISTS `AccessWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AccessWish` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `image_id` int(11) DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isNewMemberFamily` tinyint(1) NOT NULL DEFAULT 0,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `genderEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telphone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `mobilPhone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `addressCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressSecond` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressThird` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `profession` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `imageRight` tinyint(1) NOT NULL DEFAULT 1,
  `medicalComments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `notes` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishmentName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cityName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `disponibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `className` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `synchro` tinyint(1) NOT NULL DEFAULT 1,
  `approveRulesProcedureWish` tinyint(1) NOT NULL DEFAULT 0,
  `receiveInformationsFromOrganizationWish` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessOriginal_id` int(11) DEFAULT NULL,
  `accessFamilyWish_id` int(11) DEFAULT NULL,
  `addressCountry_id` int(11) DEFAULT NULL,
  `validationState` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'OPEN',
  `isValidated` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_15959C0832C8A3DE` (`organization_id`),
  KEY `IDX_15959C08DF6292BC` (`accessOriginal_id`),
  KEY `IDX_15959C08886F0E8C` (`accessFamilyWish_id`),
  KEY `IDX_15959C083DA5256D` (`image_id`),
  KEY `IDX_15959C0861AFA0F5` (`addressCountry_id`),
  CONSTRAINT `FK_15959C0832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_15959C083DA5256D` FOREIGN KEY (`image_id`) REFERENCES `File` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_15959C0861AFA0F5` FOREIGN KEY (`addressCountry_id`) REFERENCES `Country` (`id`),
  CONSTRAINT `FK_15959C08886F0E8C` FOREIGN KEY (`accessFamilyWish_id`) REFERENCES `AccessFamilyWish` (`id`),
  CONSTRAINT `FK_15959C08DF6292BC` FOREIGN KEY (`accessOriginal_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=54648 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Activity`
--

DROP TABLE IF EXISTS `Activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Activity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `logo_id` int(11) DEFAULT NULL,
  `organization_id` int(11) NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `imageActivity_id` int(11) DEFAULT NULL,
  `activityType_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_55026B0CF98F144A` (`logo_id`),
  KEY `IDX_55026B0C8C9080F` (`imageActivity_id`),
  KEY `IDX_55026B0CA1B4B28C` (`activityType_id`),
  KEY `IDX_55026B0C32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_55026B0C32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_55026B0C8C9080F` FOREIGN KEY (`imageActivity_id`) REFERENCES `File` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_55026B0CA1B4B28C` FOREIGN KEY (`activityType_id`) REFERENCES `ActivityType` (`id`),
  CONSTRAINT `FK_55026B0CF98F144A` FOREIGN KEY (`logo_id`) REFERENCES `File` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=10520 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ActivityType`
--

DROP TABLE IF EXISTS `ActivityType`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ActivityType` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `famillyType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `subFamillyType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AddressPostal`
--

DROP TABLE IF EXISTS `AddressPostal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AddressPostal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `addressCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `addressOwner` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressSecond` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressThird` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `addressCountry_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BA5D21EA61AFA0F5` (`addressCountry_id`),
  KEY `viewIndex` (`streetAddress`,`streetAddressSecond`,`streetAddressThird`),
  CONSTRAINT `FK_BA5D21EA61AFA0F5` FOREIGN KEY (`addressCountry_id`) REFERENCES `Country` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=592231 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Attendance`
--

DROP TABLE IF EXISTS `Attendance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Attendance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `replacement_id` int(11) DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_22BE0E4132C8A3DE` (`organization_id`),
  KEY `IDX_22BE0E414FEA67CF` (`access_id`),
  KEY `IDX_22BE0E419D25CF90` (`replacement_id`),
  CONSTRAINT `FK_22BE0E4132C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_22BE0E414FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_22BE0E419D25CF90` FOREIGN KEY (`replacement_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8943 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AttendanceBooking`
--

DROP TABLE IF EXISTS `AttendanceBooking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AttendanceBooking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `attendance_id` int(11) DEFAULT NULL,
  `course_id` int(11) DEFAULT NULL,
  `event_id` int(11) DEFAULT NULL,
  `examen_id` int(11) DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `justify` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `educationalProject_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_520B1A3F4FEA67CF` (`access_id`),
  KEY `IDX_520B1A3F163DDA15` (`attendance_id`),
  KEY `IDX_520B1A3F591CC992` (`course_id`),
  KEY `IDX_520B1A3F336984B1` (`educationalProject_id`),
  KEY `IDX_520B1A3F71F7E88B` (`event_id`),
  KEY `IDX_520B1A3F5C8659A` (`examen_id`),
  CONSTRAINT `FK_520B1A3F163DDA15` FOREIGN KEY (`attendance_id`) REFERENCES `Attendance` (`id`),
  CONSTRAINT `FK_520B1A3F336984B1` FOREIGN KEY (`educationalProject_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_520B1A3F4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_520B1A3F591CC992` FOREIGN KEY (`course_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_520B1A3F5C8659A` FOREIGN KEY (`examen_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_520B1A3F71F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1102040 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Access`
--

DROP TABLE IF EXISTS `Audit_Access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Access` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `person_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `adminAccess` tinyint(1) DEFAULT 0,
  `superAdminAccess` tinyint(1) DEFAULT 0,
  `roles` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `personalizedRoles` tinyint(1) DEFAULT 0,
  `note` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `loginEnabled` tinyint(1) DEFAULT 0,
  `setting` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `activityYear` int(11) DEFAULT NULL,
  `waitingForValidation` tinyint(1) DEFAULT 0,
  `sharingPersonToRecover` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessFamily_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `newAccess` tinyint(1) DEFAULT 0,
  `ielEnabled` tinyint(1) DEFAULT 0,
  `ielValidationDatetime` datetime DEFAULT NULL,
  `approveRulesProcedure` tinyint(1) DEFAULT 0,
  `receiveInformationsFromOrganization` tinyint(1) DEFAULT 0,
  `informationRetainedAndUsedDate` datetime DEFAULT NULL,
  `cguReadAndAcceptedDate` datetime DEFAULT NULL,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  `publicationDirector_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_bfd49b816540565b2fdfe2a6e609ade7_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessBilling`
--

DROP TABLE IF EXISTS `Audit_AccessBilling`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessBilling` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `customerId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodicityPayment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `familyQuotient_id` int(11) DEFAULT NULL,
  `residenceArea_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `adhesionChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'APPLY_ADHESION',
  `adhesionAmount` double DEFAULT NULL,
  `accountBalance` double DEFAULT 0,
  `accountBalanceUpdateDate` date DEFAULT NULL,
  `reportPaymentsAmount` double DEFAULT 0,
  `billSchedule_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_1f78783aa39492d1a7b7992042de5296_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessFamilyWish`
--

DROP TABLE IF EXISTS `Audit_AccessFamilyWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessFamilyWish` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `registrationCompleted` tinyint(1) DEFAULT 0,
  `registrationCompletedDateTime` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `registrationIsValidated` tinyint(1) DEFAULT 0,
  `closeRegistration` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_3995d6eb3ceb27961884ff66eec4ea2c_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessFictionalIntangible`
--

DROP TABLE IF EXISTS `Audit_AccessFictionalIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessFictionalIntangible` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `accessFamily_id` int(11) DEFAULT NULL,
  `fictionalIntangible_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_2bc7764ed44ef8a7e1d5679eb6b3130b_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessNetworkSetting`
--

DROP TABLE IF EXISTS `Audit_AccessNetworkSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessNetworkSetting` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `subscriptionCmfPaper` tinyint(1) DEFAULT 1,
  `numberPaperCopies` int(11) DEFAULT NULL,
  `receivesDigitalCmfNewletterAndInformation` tinyint(1) DEFAULT 1,
  `licenseType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `licenseRate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dateFirstEntry` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `subscriptionEducationalInformationCmfPaper` tinyint(1) DEFAULT 1,
  `subscriptionOtherInformationCmfPaper` tinyint(1) DEFAULT 1,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_c9619b58059063e9b3d0c2eebab53d7a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessSocial`
--

DROP TABLE IF EXISTS `Audit_AccessSocial`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessSocial` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `professionalStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeOfContract` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `assistedContract` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodUnit` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `socialSecurity` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `familySituation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dependentChildren` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipientNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `salaryNumber` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `attachmentService` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_9e35d8a90dc28637373be06779dd4b94_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AccessWish`
--

DROP TABLE IF EXISTS `Audit_AccessWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AccessWish` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `image_id` int(11) DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isNewMemberFamily` tinyint(1) DEFAULT 0,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `genderEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telphone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `mobilPhone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `addressCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressSecond` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressThird` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `profession` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `imageRight` tinyint(1) DEFAULT 1,
  `medicalComments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `notes` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishmentName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cityName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `disponibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `className` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teacherName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `synchro` tinyint(1) DEFAULT 1,
  `approveRulesProcedureWish` tinyint(1) DEFAULT 0,
  `receiveInformationsFromOrganizationWish` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessOriginal_id` int(11) DEFAULT NULL,
  `accessFamilyWish_id` int(11) DEFAULT NULL,
  `addressCountry_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `validationState` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'OPEN',
  `isValidated` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_bdda044d9617272c5feda4ffa31a565b_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Activity`
--

DROP TABLE IF EXISTS `Audit_Activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Activity` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `logo_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `imageActivity_id` int(11) DEFAULT NULL,
  `activityType_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_ddf2ebf87f1c1bf45f4494f57204b6e4_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_ActivityType`
--

DROP TABLE IF EXISTS `Audit_ActivityType`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_ActivityType` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `famillyType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subFamillyType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_55ba7eb2f23b6f74218a808e16ff122d_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_AddressPostal`
--

DROP TABLE IF EXISTS `Audit_AddressPostal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_AddressPostal` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `addressCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `addressOwner` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressSecond` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddressThird` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `addressCountry_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_1d8281f6e38121d772a1376c365c303c_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BankAccount`
--

DROP TABLE IF EXISTS `Audit_BankAccount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BankAccount` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `bankName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bic` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bicInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iban` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ibanInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `holder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `principal` tinyint(1) DEFAULT 0,
  `debitAddress` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `rum` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `signatureDateSamplingMandate` date DEFAULT NULL,
  `holderIdDifferent` tinyint(1) DEFAULT 0,
  `countInvoiced` int(11) DEFAULT 0,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_162a2263de7161f6e9e79651de6bab1a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillAccounting`
--

DROP TABLE IF EXISTS `Audit_BillAccounting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillAccounting` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `file_id` int(11) DEFAULT NULL,
  `bill_id` int(11) DEFAULT NULL,
  `pes_id` int(11) DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customerReference` int(11) DEFAULT NULL,
  `billNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `billingDate` date DEFAULT NULL,
  `object` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `comments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `reductionTotal` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `message` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `billCreditNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `old` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `billPeriod_id` int(11) DEFAULT NULL,
  `totalDetail_id` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `accessDetail_id` int(11) DEFAULT NULL,
  `billNumberInteger` int(11) DEFAULT NULL,
  `billCreditInteger` int(11) DEFAULT NULL,
  `sepaSampling` tinyint(1) DEFAULT 0,
  `bergerLevrault_id` int(11) DEFAULT NULL,
  `samplingDate` date DEFAULT NULL,
  `availabilityDate` date DEFAULT NULL,
  `payfipPaymentToken` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jvs_id` int(11) DEFAULT NULL,
  `enforceableTitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startSchoolYear` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `limitPaymentDate` date DEFAULT NULL,
  `ciril_id` int(11) DEFAULT NULL,
  `payfipUrlDateTime` datetime DEFAULT NULL,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_e039d7379a95707821b7d3fc6d5684f0_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillDebitBalance`
--

DROP TABLE IF EXISTS `Audit_BillDebitBalance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillDebitBalance` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `amount` double DEFAULT NULL,
  `isUsed` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessBilling_id` int(11) DEFAULT NULL,
  `billPayment_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_bb7f3b91e9cec6d9f99653c3b328fc34_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillLine`
--

DROP TABLE IF EXISTS `Audit_BillLine`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillLine` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `bill_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `intangibleName` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `intangibleDescription` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `unitPrice` double DEFAULT NULL,
  `vat` double DEFAULT NULL,
  `totalPrice` double DEFAULT NULL,
  `reductions` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `accountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nature` int(11) DEFAULT NULL,
  `educations` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `educationalProject_id` int(11) DEFAULT NULL,
  `equipmentLoan_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `accountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `intangibleDomain` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `showInBill` tinyint(1) DEFAULT 1,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_8b07b2af200cd867a5d1a922a84a1601_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillPayment`
--

DROP TABLE IF EXISTS `Audit_BillPayment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillPayment` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `bill_id` int(11) DEFAULT NULL,
  `receiptDate` date DEFAULT NULL,
  `effectiveReceiptDate` date DEFAULT NULL,
  `paymentChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bank` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `agency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `checkNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessBilling_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'PAYMENT',
  `accessBillingAccountBalanceReimbursement_id` int(11) DEFAULT NULL,
  `isRejected` tinyint(1) DEFAULT 0,
  `sddBank_id` int(11) DEFAULT NULL,
  `sddRegie_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_a750543fa0ee38565de43718155895a8_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingExportSetting`
--

DROP TABLE IF EXISTS `Audit_BillingExportSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingExportSetting` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `idPost` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idCollTipi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codProd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `libelleColBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `gestionnaire` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nameComptable` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIban` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorBic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIcs` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineOneAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineTwoAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorPublicInstitution` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `court` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `budgetaryArticleCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serviceCode` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codFunction` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `payfipCustomerNumber` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bergerLevraultSamplingMethod` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishmentCode` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payfipStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'TEST',
  `rentalBudgetaryArticleCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payfipSeveralPayments` tinyint(1) DEFAULT 1,
  `lotReference` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL,
  `directDebitCode` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `functionalCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `antenna` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teneur_id` int(11) DEFAULT NULL,
  `teneurName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `siteNumber` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rowMachineNumber` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `verifoneIdentifier` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hmac` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payboxSeveralPayments` tinyint(1) DEFAULT 1,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_7f10ae864c7ee7ad4780ab5ac9fc0430_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingIntangible`
--

DROP TABLE IF EXISTS `Audit_BillingIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingIntangible` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `intangible_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `customDescription` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `forcedAmount` double DEFAULT NULL,
  `isForcedAmount` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `unitPrice` double DEFAULT NULL,
  `lockable` tinyint(1) DEFAULT 0,
  `educationalProject_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_f047fb7abaec81e62c7a7cdd45844034_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingIntangibleExcludeDate`
--

DROP TABLE IF EXISTS `Audit_BillingIntangibleExcludeDate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingIntangibleExcludeDate` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `bill_id` int(11) DEFAULT NULL,
  `excludeDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessIntangible_id` int(11) DEFAULT NULL,
  `accessFictionalIntangible_id` int(11) DEFAULT NULL,
  `educationalProjectIntangible_id` int(11) DEFAULT NULL,
  `equipmentLoan_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_59bd47df6b94a3f20230e350b738d9d1_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingPayer`
--

DROP TABLE IF EXISTS `Audit_BillingPayer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingPayer` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `paymentPart` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accessPayer_id` int(11) DEFAULT NULL,
  `accessReceiver_id` int(11) DEFAULT NULL,
  `educationalProjectPayer_id` int(11) DEFAULT NULL,
  `educationalProjectReceiver_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_b45a127cc33ff438a23f3d7299df1d15_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingSetting`
--

DROP TABLE IF EXISTS `Audit_BillingSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingSetting` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `adhesion` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `adhesionPeriodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentNumber` int(11) DEFAULT NULL,
  `applyVat` tinyint(1) DEFAULT 0,
  `amountVat` double DEFAULT NULL,
  `headerMessage` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `footerMessage` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `adultAgeLimit` int(11) DEFAULT NULL,
  `reductionTotalAmount` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `billLine` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `prefixBillNumber` varchar(10) COLLATE utf8_unicode_ci DEFAULT 'F',
  `digitsToDisplayBillNumber` int(11) DEFAULT 6,
  `initialBillNumber` int(11) DEFAULT 1,
  `prefixBillCredit` varchar(10) COLLATE utf8_unicode_ci DEFAULT 'A',
  `digitsToDisplayBillCredit` int(11) DEFAULT 6,
  `initialCreditNumber` int(11) DEFAULT 1,
  `automaticFFECLicensing` tinyint(1) DEFAULT 0,
  `familyReductionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `lockBilling` tinyint(1) DEFAULT 0,
  `orderAdultType` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'WITHOUT_ORDER',
  `adultConditionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'ONLY_AGE',
  `applyAdhesion` tinyint(1) DEFAULT 0,
  `includeRentalInBilling` tinyint(1) DEFAULT 1,
  `reductionTotalAccountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `reductionTotalNature` int(11) DEFAULT NULL,
  `reductionTotalAccountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amountMinorDifference` double DEFAULT 0.2,
  `ignoreZeroTotalAmountExport` tinyint(1) DEFAULT 0,
  `dayOfMonthBillPayments` int(11) DEFAULT 1,
  `displayBillUniqIdentifier` tinyint(1) DEFAULT 1,
  `displayBillCustomerId` tinyint(1) DEFAULT 0,
  `addBillScheduleToTheBill` tinyint(1) DEFAULT 1,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_a92a682a87f7e7fe259a02cba81f473d_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BillingSettingRent`
--

DROP TABLE IF EXISTS `Audit_BillingSettingRent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BillingSettingRent` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `reductionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `thresholdFirstAmount` double DEFAULT NULL,
  `thresholdSecondAmount` double DEFAULT NULL,
  `thresholdNumberYear` int(11) DEFAULT NULL,
  `instrumentFamilyReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `purchaseDateReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `purchaseAmountReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `rentalYearsReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `instrumentFamilyAndRentalYearsReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `singleAmount` double DEFAULT NULL,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nature` int(11) DEFAULT NULL,
  `accountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `billingSetting_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_a25ad78f7cdf37c448aa5912599fbe04_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Booking`
--

DROP TABLE IF EXISTS `Audit_Booking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Booking` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `image_id` int(11) DEFAULT NULL,
  `gender_id` int(11) DEFAULT NULL,
  `education_id` int(11) DEFAULT NULL,
  `public_id` int(11) DEFAULT NULL,
  `jury_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additionalInformation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `visibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `report` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `comment` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isCanceled` tinyint(1) DEFAULT 0,
  `object` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `establishment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `specialClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationalDevice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `silentPartner_id` int(11) DEFAULT NULL,
  `ageDistribution_id` int(11) DEFAULT NULL,
  `operationalPartner_id` int(11) DEFAULT NULL,
  `approval` tinyint(1) DEFAULT 0,
  `unpaidLeave` int(11) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `placeSystem_id` int(11) DEFAULT NULL,
  `isDuplicate` tinyint(1) DEFAULT 0,
  `openAgendaId` int(11) DEFAULT NULL,
  `urlTicket` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `uuid` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_090dae91b58b6e417aae4416e5862280_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_BookingRecur`
--

DROP TABLE IF EXISTS `Audit_BookingRecur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_BookingRecur` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `withoutHollidayAndBank` tinyint(1) DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_cd8de13b56735a8d4ed58c8c85a58645_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Categories`
--

DROP TABLE IF EXISTS `Audit_Categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Categories` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `familly_id` int(11) DEFAULT NULL,
  `subfamilly_id` int(11) DEFAULT NULL,
  `gender_id` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_9f05210f660f157ee2e252ae33a292ec_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_City`
--

DROP TABLE IF EXISTS `Audit_City`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_City` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_12b934a36b6a3f0f32ef638b39578788_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Commission`
--

DROP TABLE IF EXISTS `Audit_Commission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Commission` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `name` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(127) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_afc24fb753dbfc1b73de19d78b750ef8_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_CommissionMember`
--

DROP TABLE IF EXISTS `Audit_CommissionMember`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_CommissionMember` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `commission_id` int(11) DEFAULT NULL,
  `member_id` int(11) DEFAULT NULL,
  `commissionMemberFunction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `functionComplement` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `causeOutput` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_6f741a24a2a2fa879c88600e61c02a9d_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Control`
--

DROP TABLE IF EXISTS `Audit_Control`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Control` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `accompanist_id` int(11) DEFAULT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `equipment_id` int(11) DEFAULT NULL,
  `controlType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `report` tinyint(1) DEFAULT NULL,
  `operator` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `finding` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `workDoing` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `lifeBalance` int(11) DEFAULT NULL,
  `usedDuration` int(11) DEFAULT NULL,
  `balanceUsefulLife` int(11) DEFAULT NULL,
  `nextControl` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_3b742b80019b77c5d0d6d7e5f9b32495_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Country`
--

DROP TABLE IF EXISTS `Audit_Country`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Country` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_05e8b02cffcf9c2805f924924a90f424_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_CriteriaNotation`
--

DROP TABLE IF EXISTS `Audit_CriteriaNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_CriteriaNotation` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isActive` tinyint(1) DEFAULT 1,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `noteMax` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_abc0e6271d43cf3df3770b04d728859a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_CustomNotation`
--

DROP TABLE IF EXISTS `Audit_CustomNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_CustomNotation` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `criteriaNotation_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_dbdf7a94c391f3ded7da0c7149873982_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Cycle`
--

DROP TABLE IF EXISTS `Audit_Cycle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Cycle` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `order` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cycleEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isSystem` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_aa092e444300577eee42854b6c348aa6_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Department`
--

DROP TABLE IF EXISTS `Audit_Department`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Department` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `region_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `departmentNumber` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_14af1923f20ec83f7dd244036d553c16_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_DocumentWish`
--

DROP TABLE IF EXISTS `Audit_DocumentWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_DocumentWish` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'OTHER',
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `accessWish_id` int(11) DEFAULT NULL,
  `personOwner_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_ca92c4e85abcd2f9b18966ab466ff7b9_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Donor`
--

DROP TABLE IF EXISTS `Audit_Donor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Donor` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `wording` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `paymentDate` date DEFAULT NULL,
  `emailVisibility` tinyint(1) DEFAULT 0,
  `logoVisibility` tinyint(1) DEFAULT 0,
  `donorVisibility` tinyint(1) DEFAULT 0,
  `displayedOn` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:simple_array)',
  `federationDisplay` tinyint(1) DEFAULT 0,
  `associationDisplay` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_3a1015897bb2d6987fec0f53c335851d_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EducationNotation`
--

DROP TABLE IF EXISTS `Audit_EducationNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EducationNotation` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `freeCriterion` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `period` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `note` decimal(10,2) DEFAULT NULL,
  `mention` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `appreciation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isValid` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `educationStudent_id` int(11) DEFAULT NULL,
  `criteriaNotation_id` int(11) DEFAULT NULL,
  `criteriaNotationConfig_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_a4df7c7a5e5cd8619a96d6238f40b283_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EducationNotationConfig`
--

DROP TABLE IF EXISTS `Audit_EducationNotationConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EducationNotationConfig` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isActive` tinyint(1) DEFAULT 1,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `coefficient` int(11) DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_5a859743f155f7a02f806a5e2d2275e9_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EducationNotationCriteriaConfig`
--

DROP TABLE IF EXISTS `Audit_EducationNotationCriteriaConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EducationNotationCriteriaConfig` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `coefficient` int(11) DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  `criteriaNotation_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_1fb5b587f8581069ac3cbdc7e4b45bc4_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EducationStudent`
--

DROP TABLE IF EXISTS `Audit_EducationStudent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EducationStudent` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `graduation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acquired` tinyint(1) DEFAULT 0,
  `annualAppreciation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `educationCurriculum_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `registeredFollowingYear` tinyint(1) DEFAULT 0,
  `days` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `time` time DEFAULT NULL,
  `educationStudentLastYear_id` int(11) DEFAULT NULL,
  `educationTiming_id` int(11) DEFAULT NULL,
  `speciality_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_8c3560951ee9ad4216f00805093fd1a7_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EducationStudentWish`
--

DROP TABLE IF EXISTS `Audit_EducationStudentWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EducationStudentWish` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `days` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `time` time DEFAULT NULL,
  `registeredFollowingYear` tinyint(1) DEFAULT 0,
  `wishRegistration` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'NO_INFORMATION',
  `registrationStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'NEGOTIABLE',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `educationWish_id` int(11) DEFAULT NULL,
  `accessWish_id` int(11) DEFAULT NULL,
  `accessWishReregistrations_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `alreadyValidate` tinyint(1) DEFAULT 0,
  `educationCurriculum_id` int(11) DEFAULT NULL,
  `educationStudent_id` int(11) DEFAULT NULL,
  `educationTiming_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_185eca13dd576389e9a9f51c88b5d4cb_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EventFiles`
--

DROP TABLE IF EXISTS `Audit_EventFiles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EventFiles` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `file_id` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_2979f84a921cca11b0b770507110ae4c_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EventGender`
--

DROP TABLE IF EXISTS `Audit_EventGender`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EventGender` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `code` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_b6c097cd989c102c063a2a04b562ae38_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_EventUser`
--

DROP TABLE IF EXISTS `Audit_EventUser`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_EventUser` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `event_id` int(11) DEFAULT NULL,
  `guest_id` int(11) DEFAULT NULL,
  `participation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `statusMail` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'READY',
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `attendance` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_02d0bdb40176de2dd5471eff25b0a261_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Familly`
--

DROP TABLE IF EXISTS `Audit_Familly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Familly` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_10de2c3001b5cf3b051617f88dba7790_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_FamilyQuotient`
--

DROP TABLE IF EXISTS `Audit_FamilyQuotient`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_FamilyQuotient` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `sliceName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lowerBound` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `upperBound` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `billingSetting_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_57e2d0e6a3de43f40fd1cb8bb4939ed4_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_File`
--

DROP TABLE IF EXISTS `Audit_File`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_File` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `person_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mimeType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accessRoles` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `config` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `folder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'NONE',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `eventReport_id` int(11) DEFAULT NULL,
  `availabilityDate` date DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `isTemporaryFile` tinyint(1) DEFAULT 0,
  `documentWish_id` int(11) DEFAULT NULL,
  `onlineRegistrationSetting_id` int(11) DEFAULT NULL,
  `templateSystem_id` int(11) DEFAULT NULL,
  `work_id` int(11) DEFAULT NULL,
  `onlineRegistrationSettingNewEnrolments_id` int(11) DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_9a2944727a1fafadc1f96e26131427dc_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_FunctionType`
--

DROP TABLE IF EXISTS `Audit_FunctionType`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_FunctionType` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `functionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mission` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `roleByDefault` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_208b553b02b1c8ee92538c36d6f46a2d_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Gender`
--

DROP TABLE IF EXISTS `Audit_Gender`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Gender` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_e7f47bdef96354e6de215d132456b1fc_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Jury`
--

DROP TABLE IF EXISTS `Audit_Jury`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Jury` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `name` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_5ccaf0ed3baccefa835da4a8f48348ff_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Medal`
--

DROP TABLE IF EXISTS `Audit_Medal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Medal` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `medalDate` date DEFAULT NULL,
  `medalType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherMedalType` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_4249a78c823594817d9ed2c25ad9234a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Medical`
--

DROP TABLE IF EXISTS `Audit_Medical`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Medical` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `doctor` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `doctorePhone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `comments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `certificate` tinyint(1) DEFAULT NULL,
  `insuranceCertificate` tinyint(1) DEFAULT NULL,
  `insuranceName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `insuranceNumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `healthPass` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_c7f08d30fb9e805015d5fa1c0c7f4241_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Network`
--

DROP TABLE IF EXISTS `Audit_Network`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Network` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `logo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `image_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_fdfed1e4cf4b3b8212a6f1f3ad8cf4e5_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_NetworkOrganization`
--

DROP TABLE IF EXISTS `Audit_NetworkOrganization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_NetworkOrganization` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `network_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `leadingCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `parent_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_5e523450848561c213ede1bfcf70b7c1_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_OpeningHoursSpecification`
--

DROP TABLE IF EXISTS `Audit_OpeningHoursSpecification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_OpeningHoursSpecification` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `closes` time DEFAULT NULL,
  `dayOfWeek` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:simple_array)',
  `opens` time DEFAULT NULL,
  `validFrom` datetime DEFAULT NULL,
  `validThrough` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_7c78e90f273d531102e1bff130255036_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Organization`
--

DROP TABLE IF EXISTS `Audit_Organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Organization` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `image_id` int(11) DEFAULT NULL,
  `logo_id` int(11) DEFAULT NULL,
  `parameters_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creationDate` date DEFAULT NULL,
  `identifier` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `declarationDate` date DEFAULT NULL,
  `legalStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `siretNumber` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `waldecNumber` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `apeNumber` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tvaNumber` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `principalType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherType` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acronym` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL,
  `facebook` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `twitter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `collectiveAgreement` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opca` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `icomNumber` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `urssafNumber` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `youngApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `trainingApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherApproval` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prefectureName` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prefectureNumber` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schoolCategory` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeEstablishment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeEstablishmentDetail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `budget` double DEFAULT NULL,
  `isPedagogicIsPrincipalActivity` tinyint(1) DEFAULT NULL,
  `pedagogicBudget` double DEFAULT NULL,
  `isPerformanceContractor` tinyint(1) DEFAULT NULL,
  `ffecApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `portailVisibility` tinyint(1) DEFAULT 0,
  `cmsId` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `contactPerson_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `instagram` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherPractice` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `youtube` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `volumeAndFolioNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_711dd61c157a8297676a22dc6d3efe74_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_OrganizationFunction`
--

DROP TABLE IF EXISTS `Audit_OrganizationFunction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_OrganizationFunction` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `activity_id` int(11) DEFAULT NULL,
  `functionComplement` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `departureCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isMemberSection` tinyint(1) DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `functionType_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_f5be9e5d11ebe99d5061936f84ec9167_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_OrganizationResponsability`
--

DROP TABLE IF EXISTS `Audit_OrganizationResponsability`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_OrganizationResponsability` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `responsability` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isPhysical` tinyint(1) DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_b105893e6279711234716510e57f8b36_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Parameters`
--

DROP TABLE IF EXISTS `Audit_Parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Parameters` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `financialDate` date DEFAULT NULL,
  `musicalDate` date DEFAULT NULL,
  `startCourseDate` date DEFAULT NULL,
  `endCourseDate` date DEFAULT NULL,
  `periodValidation` tinyint(1) DEFAULT 0,
  `editCriteriaNotationByAdminOnly` tinyint(1) DEFAULT 1,
  `smsSenderName` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `logoDonorsMove` tinyint(1) DEFAULT 0,
  `subDomain` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `website` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherWebsite` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `desactivateOpentalentSiteWeb` tinyint(1) DEFAULT 0,
  `bulletinPeriod` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulletinWithTeacher` tinyint(1) DEFAULT 0,
  `bulletinPrintAddress` tinyint(1) DEFAULT 0,
  `bulletinSignatureDirector` tinyint(1) DEFAULT 1,
  `bulletinDisplayLevelAcquired` tinyint(1) DEFAULT 1,
  `bulletinShowEducationWithoutEvaluation` tinyint(1) DEFAULT 0,
  `bulletinViewTestResults` tinyint(1) DEFAULT 0,
  `bulletinShowAbsences` tinyint(1) DEFAULT 0,
  `bulletinShowAverages` tinyint(1) DEFAULT 1,
  `bulletinOutput` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `usernameSMS` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passwordSMS` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulletinEditWithoutEvaluation` tinyint(1) DEFAULT 1,
  `bulletinReceiver` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'STUDENTS_AND_THEIR_GUARDIANS',
  `showAdherentList` tinyint(1) DEFAULT 1,
  `studentsAreAdherents` tinyint(1) DEFAULT 0,
  `timezone` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Europe/Paris',
  `educationPeriodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'ANNUAL',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `qrCode_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `average` int(11) DEFAULT 20,
  `advancedEducationNotationType` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'BY_EDUCATION',
  `sendAttendanceEmail` tinyint(1) DEFAULT 0,
  `sendAttendanceSms` tinyint(1) DEFAULT 0,
  `requiredValidation` tinyint(1) DEFAULT 0,
  `notifyAdministrationAbsence` tinyint(1) DEFAULT 0,
  `numberConsecutiveAbsences` int(11) DEFAULT 2,
  `createCourse` tinyint(1) DEFAULT 0,
  `updateCourse` tinyint(1) DEFAULT 0,
  `deleteCourse` tinyint(1) DEFAULT 0,
  `crudPedagogic` tinyint(1) DEFAULT 0,
  `generateAttendanceReport` tinyint(1) DEFAULT 1,
  `consultTeacherListing` tinyint(1) DEFAULT 1,
  `administrationCc` tinyint(1) DEFAULT 0,
  `consultPedagogicResult` tinyint(1) DEFAULT 1,
  `customDomain` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_659d6f0701bf730e9cba500117d378f2_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Person`
--

DROP TABLE IF EXISTS `Audit_Person`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Person` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `image_id` int(11) DEFAULT NULL,
  `nationality_id` int(11) DEFAULT NULL,
  `medical_id` int(11) DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `username_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) DEFAULT 0,
  `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `confirmation_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password_requested_at` datetime DEFAULT NULL,
  `locked` tinyint(1) DEFAULT 0,
  `expired` tinyint(1) DEFAULT 0,
  `expires_at` datetime DEFAULT NULL,
  `roles` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:array)',
  `credentials_expired` tinyint(1) DEFAULT 0,
  `credentials_expire_at` datetime DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthPlace` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `insee` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeMoral` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isPhysical` tinyint(1) DEFAULT 1,
  `imageRight` tinyint(1) DEFAULT 1,
  `confidentiality` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `accessFavorite` int(11) DEFAULT NULL,
  `login_requested_at` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `profession` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_97e0641760401567ff4eb0ee42322c9b_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_PersonActivity`
--

DROP TABLE IF EXISTS `Audit_PersonActivity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_PersonActivity` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `activity_id` int(11) DEFAULT NULL,
  `speciality_id` int(11) DEFAULT NULL,
  `complementSpeciality` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mainActivity` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_d28e1f524452a86043c0d84fcff1f675_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_PersonAddressPostal`
--

DROP TABLE IF EXISTS `Audit_PersonAddressPostal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_PersonAddressPostal` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `person_id` int(11) DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `addressPostal_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_b3511830b96dad51efced6fd337920a7_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_PersonalizedList`
--

DROP TABLE IF EXISTS `Audit_PersonalizedList`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_PersonalizedList` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `label` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `filters` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `entity` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `columns` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `menuKey` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_1d92a471d6bfd1812e16ab0447561968_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Pes`
--

DROP TABLE IF EXISTS `Audit_Pes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Pes` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `file_id` int(11) DEFAULT NULL,
  `roleNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `samplingDate` date DEFAULT NULL,
  `withSampling` tinyint(1) DEFAULT 0,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_f08cac0a9b42d11ee78b3e2c22b90a12_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_PesSetting`
--

DROP TABLE IF EXISTS `Audit_PesSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_PesSetting` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `idPost` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idCollTipi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codProd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `libelleColBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `gestionnaire` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nameComptable` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `creditorIban` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorBic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIcs` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineOneAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineTwoAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorPublicInstitution` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_f8885a61837bf54581aa27782f3cdf5a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Place`
--

DROP TABLE IF EXISTS `Audit_Place`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Place` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `internal` tinyint(1) DEFAULT 0,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sharing` tinyint(1) DEFAULT 0,
  `practice` tinyint(1) DEFAULT 0,
  `floorSize` int(11) DEFAULT NULL,
  `capacity` int(11) DEFAULT NULL,
  `isSystem` tinyint(1) DEFAULT 0,
  `siretNumber` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `addressPostal_id` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_66378e05d28ca23a720ebd8192445ac6_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Qualification`
--

DROP TABLE IF EXISTS `Audit_Qualification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Qualification` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `person_id` int(11) DEFAULT NULL,
  `diploma` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `mention` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishment` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_95581b316f07eef98bd712f4621c82bc_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Region`
--

DROP TABLE IF EXISTS `Audit_Region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Region` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `country_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_682add4fd869e7c573923ffc2ccd3620_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Repair`
--

DROP TABLE IF EXISTS `Audit_Repair`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Repair` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `provider_id` int(11) DEFAULT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `equipment_id` int(11) DEFAULT NULL,
  `repairType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `workToDo` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `workDoing` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `cost` double DEFAULT NULL,
  `tva` double DEFAULT NULL,
  `invoiceNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `appreciation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_3b29df83cca03765ee0b69e3c887c222_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_ResidenceArea`
--

DROP TABLE IF EXISTS `Audit_ResidenceArea`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_ResidenceArea` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `billingSetting_id` int(11) DEFAULT NULL,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_2203f37d6590e8421da75bbfbf7eb60b_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Room`
--

DROP TABLE IF EXISTS `Audit_Room`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Room` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `place_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `localisation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `capacity` int(11) DEFAULT NULL,
  `floorSize` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_285891b4b193d4b2549dd01dcec47c31_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Settings`
--

DROP TABLE IF EXISTS `Audit_Settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Settings` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `product` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'school',
  `modules` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `actions` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'FRANCE',
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_f1e0c34be1bce93fa69636cea1843367_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Subfamilly`
--

DROP TABLE IF EXISTS `Audit_Subfamilly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Subfamilly` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_fdf906dd86e0a56e5b391e88da54a701_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_TeacherSchoolingHistory`
--

DROP TABLE IF EXISTS `Audit_TeacherSchoolingHistory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_TeacherSchoolingHistory` (
  `rev` int(11) NOT NULL,
  `id` int(11) NOT NULL,
  `person_id` int(11) DEFAULT NULL,
  `establishment` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teaching` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `beginDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_afa99ffe99a24960475c73d5c137f950_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Audit_Work`
--

DROP TABLE IF EXISTS `Audit_Work`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Audit_Work` (
  `id` int(11) NOT NULL,
  `rev` int(11) NOT NULL,
  `course_id` int(11) DEFAULT NULL,
  `datetime` datetime DEFAULT NULL,
  `work` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) DEFAULT 0,
  `revtype` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`,`rev`),
  KEY `rev_a7b49d32dd047352b2d5a0cf9116484a_idx` (`rev`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `AwinProduct`
--

DROP TABLE IF EXISTS `AwinProduct`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `AwinProduct` (
  `id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `slug` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci DEFAULT NULL,
  `categories` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `datetimeStart` date DEFAULT NULL,
  `datetimeEnd` date DEFAULT NULL,
  `meeting_schedule` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `place_code` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `place` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(9) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `latitude` decimal(18,15) DEFAULT NULL,
  `longitude` decimal(18,15) DEFAULT NULL,
  `mediumimage` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `largeimage` varchar(2000) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deepLink` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `price_mini` double DEFAULT NULL,
  `price_maxi` double DEFAULT NULL,
  `artists` text COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `uuid` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `viewIndex` (`datetimeEnd`,`datetimeStart`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BankAccount`
--

DROP TABLE IF EXISTS `BankAccount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BankAccount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bankName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bic` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bicInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iban` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ibanInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `holder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `principal` tinyint(1) NOT NULL DEFAULT 0,
  `debitAddress` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `rum` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `signatureDateSamplingMandate` date DEFAULT NULL,
  `holderIdDifferent` tinyint(1) NOT NULL DEFAULT 0,
  `countInvoiced` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_ED412811C97FF57A` (`rum`)
) ENGINE=InnoDB AUTO_INCREMENT=3517 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BergerLevrault`
--

DROP TABLE IF EXISTS `BergerLevrault`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BergerLevrault` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_8CE0D9A193CB796C` (`file_id`),
  CONSTRAINT `FK_8CE0D9A193CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillAccessDetail`
--

DROP TABLE IF EXISTS `BillAccessDetail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillAccessDetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `accessId` int(11) NOT NULL,
  `customerId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `familyQuotientSliceName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `residenceAreaLabel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodicityPayment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `streetAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `addressCity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `bankName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bic` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iban` varchar(34) COLLATE utf8_unicode_ci DEFAULT NULL,
  `holder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rum` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=141020 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillAccounting`
--

DROP TABLE IF EXISTS `BillAccounting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillAccounting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `access_id` int(11) NOT NULL,
  `file_id` int(11) DEFAULT NULL,
  `bill_id` int(11) DEFAULT NULL,
  `pes_id` int(11) DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customerReference` int(11) DEFAULT NULL,
  `billNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `billingDate` date DEFAULT NULL,
  `object` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `comments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `reductionTotal` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `message` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `billCreditNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `old` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `billPeriod_id` int(11) DEFAULT NULL,
  `totalDetail_id` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `accessDetail_id` int(11) DEFAULT NULL,
  `billNumberInteger` int(11) DEFAULT NULL,
  `billCreditInteger` int(11) DEFAULT NULL,
  `sepaSampling` tinyint(1) NOT NULL DEFAULT 0,
  `bergerLevrault_id` int(11) DEFAULT NULL,
  `samplingDate` date DEFAULT NULL,
  `availabilityDate` date DEFAULT NULL,
  `payfipPaymentToken` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jvs_id` int(11) DEFAULT NULL,
  `enforceableTitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startSchoolYear` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `limitPaymentDate` date DEFAULT NULL,
  `ciril_id` int(11) DEFAULT NULL,
  `payfipUrlDateTime` datetime DEFAULT NULL,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4E8ED51832C8A3DE` (`organization_id`),
  KEY `IDX_4E8ED5184FEA67CF` (`access_id`),
  KEY `IDX_4E8ED518CD4673DC` (`billPeriod_id`),
  KEY `IDX_4E8ED518CA1EC8C9` (`totalDetail_id`),
  KEY `IDX_4E8ED51893CB796C` (`file_id`),
  KEY `IDX_4E8ED5181A8C12F5` (`bill_id`),
  KEY `IDX_4E8ED518BB8470F` (`pes_id`),
  KEY `IDX_4E8ED51819F40549` (`accessDetail_id`),
  KEY `IDX_4E8ED51860A85C3F` (`bergerLevrault_id`),
  KEY `IDX_4E8ED5188EB58BA0` (`jvs_id`),
  KEY `IDX_4E8ED5181F509C68` (`ciril_id`),
  CONSTRAINT `FK_4E8ED51819F40549` FOREIGN KEY (`accessDetail_id`) REFERENCES `BillAccessDetail` (`id`),
  CONSTRAINT `FK_4E8ED5181A8C12F5` FOREIGN KEY (`bill_id`) REFERENCES `BillAccounting` (`id`),
  CONSTRAINT `FK_4E8ED5181F509C68` FOREIGN KEY (`ciril_id`) REFERENCES `Ciril` (`id`),
  CONSTRAINT `FK_4E8ED51832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_4E8ED5184FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_4E8ED51860A85C3F` FOREIGN KEY (`bergerLevrault_id`) REFERENCES `BergerLevrault` (`id`),
  CONSTRAINT `FK_4E8ED5188EB58BA0` FOREIGN KEY (`jvs_id`) REFERENCES `Jvs` (`id`),
  CONSTRAINT `FK_4E8ED51893CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`),
  CONSTRAINT `FK_4E8ED518BB8470F` FOREIGN KEY (`pes_id`) REFERENCES `Pes` (`id`),
  CONSTRAINT `FK_4E8ED518CA1EC8C9` FOREIGN KEY (`totalDetail_id`) REFERENCES `BillTotalDetail` (`id`),
  CONSTRAINT `FK_4E8ED518CD4673DC` FOREIGN KEY (`billPeriod_id`) REFERENCES `BillPeriod` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=228834 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillDebitBalance`
--

DROP TABLE IF EXISTS `BillDebitBalance`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillDebitBalance` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` double DEFAULT NULL,
  `isUsed` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessBilling_id` int(11) NOT NULL,
  `billPayment_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A24384D06870EBB1` (`accessBilling_id`),
  KEY `IDX_A24384D0EAEC0F9E` (`billPayment_id`),
  CONSTRAINT `FK_A24384D06870EBB1` FOREIGN KEY (`accessBilling_id`) REFERENCES `AccessBilling` (`id`),
  CONSTRAINT `FK_A24384D0EAEC0F9E` FOREIGN KEY (`billPayment_id`) REFERENCES `BillPayment` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillLine`
--

DROP TABLE IF EXISTS `BillLine`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillLine` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bill_id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `intangibleName` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `intangibleDescription` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `unitPrice` double DEFAULT NULL,
  `vat` double DEFAULT NULL,
  `totalPrice` double DEFAULT NULL,
  `reductions` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `accountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nature` int(11) DEFAULT NULL,
  `educations` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `educationalProject_id` int(11) DEFAULT NULL,
  `equipmentLoan_id` int(11) DEFAULT NULL,
  `accountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `intangibleDomain` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `showInBill` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `IDX_632282761A8C12F5` (`bill_id`),
  KEY `IDX_632282764FEA67CF` (`access_id`),
  KEY `IDX_63228276336984B1` (`educationalProject_id`),
  KEY `IDX_632282765F7327D0` (`equipmentLoan_id`),
  CONSTRAINT `FK_632282761A8C12F5` FOREIGN KEY (`bill_id`) REFERENCES `BillAccounting` (`id`),
  CONSTRAINT `FK_63228276336984B1` FOREIGN KEY (`educationalProject_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_632282764FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_632282765F7327D0` FOREIGN KEY (`equipmentLoan_id`) REFERENCES `EquipmentLoan` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=462747 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillPayment`
--

DROP TABLE IF EXISTS `BillPayment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillPayment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bill_id` int(11) DEFAULT NULL,
  `receiptDate` date DEFAULT NULL,
  `effectiveReceiptDate` date DEFAULT NULL,
  `paymentChoice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bank` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `agency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `checkNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessBilling_id` int(11) DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'PAYMENT',
  `accessBillingAccountBalanceReimbursement_id` int(11) DEFAULT NULL,
  `isRejected` tinyint(1) NOT NULL DEFAULT 0,
  `sddBank_id` int(11) DEFAULT NULL,
  `sddRegie_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CABB9BD31A8C12F5` (`bill_id`),
  KEY `IDX_CABB9BD36870EBB1` (`accessBilling_id`),
  KEY `IDX_CABB9BD360001555` (`accessBillingAccountBalanceReimbursement_id`),
  KEY `IDX_CABB9BD3E8C335A7` (`sddBank_id`),
  KEY `IDX_CABB9BD3F625788` (`sddRegie_id`),
  CONSTRAINT `FK_CABB9BD31A8C12F5` FOREIGN KEY (`bill_id`) REFERENCES `BillAccounting` (`id`),
  CONSTRAINT `FK_CABB9BD360001555` FOREIGN KEY (`accessBillingAccountBalanceReimbursement_id`) REFERENCES `AccessBilling` (`id`),
  CONSTRAINT `FK_CABB9BD36870EBB1` FOREIGN KEY (`accessBilling_id`) REFERENCES `AccessBilling` (`id`),
  CONSTRAINT `FK_CABB9BD3E8C335A7` FOREIGN KEY (`sddBank_id`) REFERENCES `SddBank` (`id`),
  CONSTRAINT `FK_CABB9BD3F625788` FOREIGN KEY (`sddRegie_id`) REFERENCES `SddRegie` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=313075 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillPeriod`
--

DROP TABLE IF EXISTS `BillPeriod`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillPeriod` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schoolYear` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `detailDateStart` date DEFAULT NULL,
  `detailDateEnd` date DEFAULT NULL,
  `detailLabel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `uniqDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=227986 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillSchedule`
--

DROP TABLE IF EXISTS `BillSchedule`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillSchedule` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `label` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `firstPayment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `scheduleNumber` int(11) DEFAULT NULL,
  `firstBillScheduleDate` date DEFAULT NULL,
  `paymentFirstMonth` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_3BF47D3732C8A3DE` (`organization_id`),
  CONSTRAINT `FK_3BF47D3732C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17850 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillScheduleDate`
--

DROP TABLE IF EXISTS `BillScheduleDate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillScheduleDate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `scheduleDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `billSchedule_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FAA26EC2EFE1393E` (`billSchedule_id`),
  CONSTRAINT `FK_FAA26EC2EFE1393E` FOREIGN KEY (`billSchedule_id`) REFERENCES `BillSchedule` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillTotalDetail`
--

DROP TABLE IF EXISTS `BillTotalDetail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillTotalDetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vat` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `htNoReduc` double DEFAULT NULL,
  `ht` double DEFAULT NULL,
  `ttc` double DEFAULT NULL,
  `totalReduction` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=230298 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingExportSetting`
--

DROP TABLE IF EXISTS `BillingExportSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingExportSetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `idPost` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idCollTipi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codProd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `libelleColBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `gestionnaire` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nameComptable` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIban` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorBic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIcs` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineOneAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineTwoAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorPublicInstitution` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `court` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `budgetaryArticleCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serviceCode` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codFunction` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `payfipCustomerNumber` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bergerLevraultSamplingMethod` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishmentCode` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payfipStatus` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'TEST',
  `rentalBudgetaryArticleCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payfipSeveralPayments` tinyint(1) NOT NULL DEFAULT 1,
  `lotReference` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL,
  `directDebitCode` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `functionalCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `antenna` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teneur_id` int(11) DEFAULT NULL,
  `teneurName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `siteNumber` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `rowMachineNumber` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `verifoneIdentifier` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hmac` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payboxSeveralPayments` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_9D44CD2A32C8A3DE` (`organization_id`),
  KEY `IDX_9D44CD2A39F99A73` (`teneur_id`),
  CONSTRAINT `FK_9D44CD2A32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_9D44CD2A39F99A73` FOREIGN KEY (`teneur_id`) REFERENCES `SddTeneur` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingIntangible`
--

DROP TABLE IF EXISTS `BillingIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingIntangible` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `intangible_id` int(11) NOT NULL,
  `access_id` int(11) DEFAULT NULL,
  `customDescription` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `quantity` int(11) DEFAULT NULL,
  `forcedAmount` double DEFAULT NULL,
  `isForcedAmount` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `unitPrice` double DEFAULT NULL,
  `lockable` tinyint(1) DEFAULT 0,
  `educationalProject_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2772E464EB08B2B1` (`intangible_id`),
  KEY `IDX_2772E4644FEA67CF` (`access_id`),
  KEY `IDX_2772E464336984B1` (`educationalProject_id`),
  CONSTRAINT `FK_2772E464336984B1` FOREIGN KEY (`educationalProject_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_2772E4644FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_2772E464EB08B2B1` FOREIGN KEY (`intangible_id`) REFERENCES `Product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=260638 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingIntangibleExcludeDate`
--

DROP TABLE IF EXISTS `BillingIntangibleExcludeDate`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingIntangibleExcludeDate` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bill_id` int(11) DEFAULT NULL,
  `excludeDate` date NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessIntangible_id` int(11) DEFAULT NULL,
  `accessFictionalIntangible_id` int(11) DEFAULT NULL,
  `educationalProjectIntangible_id` int(11) DEFAULT NULL,
  `equipmentLoan_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6F410CB0DE6103AF` (`accessIntangible_id`),
  KEY `IDX_6F410CB0DD4789D7` (`accessFictionalIntangible_id`),
  KEY `IDX_6F410CB0C32633CC` (`educationalProjectIntangible_id`),
  KEY `IDX_6F410CB05F7327D0` (`equipmentLoan_id`),
  KEY `IDX_6F410CB01A8C12F5` (`bill_id`),
  CONSTRAINT `FK_6F410CB01A8C12F5` FOREIGN KEY (`bill_id`) REFERENCES `BillAccounting` (`id`),
  CONSTRAINT `FK_6F410CB05F7327D0` FOREIGN KEY (`equipmentLoan_id`) REFERENCES `EquipmentLoan` (`id`),
  CONSTRAINT `FK_6F410CB0C32633CC` FOREIGN KEY (`educationalProjectIntangible_id`) REFERENCES `BillingIntangible` (`id`),
  CONSTRAINT `FK_6F410CB0DD4789D7` FOREIGN KEY (`accessFictionalIntangible_id`) REFERENCES `AccessFictionalIntangible` (`id`),
  CONSTRAINT `FK_6F410CB0DE6103AF` FOREIGN KEY (`accessIntangible_id`) REFERENCES `BillingIntangible` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=267585 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingPayer`
--

DROP TABLE IF EXISTS `BillingPayer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingPayer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `paymentPart` double NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `accessPayer_id` int(11) DEFAULT NULL,
  `accessReceiver_id` int(11) DEFAULT NULL,
  `educationalProjectPayer_id` int(11) DEFAULT NULL,
  `educationalProjectReceiver_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BA6CE1B984618097` (`accessPayer_id`),
  KEY `IDX_BA6CE1B92BA0A98` (`accessReceiver_id`),
  KEY `IDX_BA6CE1B966B0A3CC` (`educationalProjectPayer_id`),
  KEY `IDX_BA6CE1B92D2E5E08` (`educationalProjectReceiver_id`),
  CONSTRAINT `FK_BA6CE1B92BA0A98` FOREIGN KEY (`accessReceiver_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_BA6CE1B92D2E5E08` FOREIGN KEY (`educationalProjectReceiver_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_BA6CE1B966B0A3CC` FOREIGN KEY (`educationalProjectPayer_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_BA6CE1B984618097` FOREIGN KEY (`accessPayer_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=406597 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingPayer_save13042022`
--

DROP TABLE IF EXISTS `BillingPayer_save13042022`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingPayer_save13042022` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `paymentPart` double NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `accessPayer_id` int(11) DEFAULT NULL,
  `accessReceiver_id` int(11) DEFAULT NULL,
  `educationalProjectPayer_id` int(11) DEFAULT NULL,
  `educationalProjectReceiver_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BA6CE1B984618097` (`accessPayer_id`),
  KEY `IDX_BA6CE1B92BA0A98` (`accessReceiver_id`),
  KEY `IDX_BA6CE1B966B0A3CC` (`educationalProjectPayer_id`),
  KEY `IDX_BA6CE1B92D2E5E08` (`educationalProjectReceiver_id`)
) ENGINE=InnoDB AUTO_INCREMENT=307625 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingSetting`
--

DROP TABLE IF EXISTS `BillingSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingSetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `adhesion` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `adhesionPeriodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paymentNumber` int(11) DEFAULT NULL,
  `applyVat` tinyint(1) NOT NULL DEFAULT 0,
  `amountVat` double DEFAULT NULL,
  `headerMessage` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `footerMessage` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `adultAgeLimit` int(11) DEFAULT NULL,
  `reductionTotalAmount` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `billLine` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `prefixBillNumber` varchar(10) COLLATE utf8_unicode_ci DEFAULT 'F',
  `digitsToDisplayBillNumber` int(11) DEFAULT 6,
  `initialBillNumber` int(11) DEFAULT 1,
  `prefixBillCredit` varchar(10) COLLATE utf8_unicode_ci DEFAULT 'A',
  `digitsToDisplayBillCredit` int(11) DEFAULT 6,
  `initialCreditNumber` int(11) DEFAULT 1,
  `automaticFFECLicensing` tinyint(1) NOT NULL DEFAULT 0,
  `familyReductionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `lockBilling` tinyint(1) NOT NULL DEFAULT 0,
  `orderAdultType` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'WITHOUT_ORDER',
  `adultConditionType` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'ONLY_AGE',
  `applyAdhesion` tinyint(1) NOT NULL DEFAULT 0,
  `includeRentalInBilling` tinyint(1) NOT NULL DEFAULT 1,
  `reductionTotalAccountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `reductionTotalNature` int(11) DEFAULT NULL,
  `reductionTotalAccountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amountMinorDifference` double DEFAULT 0.2,
  `ignoreZeroTotalAmountExport` tinyint(1) NOT NULL DEFAULT 0,
  `dayOfMonthBillPayments` int(11) NOT NULL DEFAULT 1,
  `displayBillUniqIdentifier` tinyint(1) NOT NULL DEFAULT 1,
  `displayBillCustomerId` tinyint(1) NOT NULL DEFAULT 0,
  `addBillScheduleToTheBill` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_21443D0F32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_21443D0F32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5986 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BillingSettingRent`
--

DROP TABLE IF EXISTS `BillingSettingRent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BillingSettingRent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `reductionType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `thresholdFirstAmount` double DEFAULT NULL,
  `thresholdSecondAmount` double DEFAULT NULL,
  `thresholdNumberYear` int(11) DEFAULT NULL,
  `instrumentFamilyReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `purchaseDateReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `purchaseAmountReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `rentalYearsReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `instrumentFamilyAndRentalYearsReduction` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `singleAmount` double DEFAULT NULL,
  `periodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nature` int(11) DEFAULT NULL,
  `accountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `billingSetting_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_EE61E3858E77DE1` (`billingSetting_id`),
  CONSTRAINT `FK_EE61E3858E77DE1` FOREIGN KEY (`billingSetting_id`) REFERENCES `BillingSetting` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=305 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Booking`
--

DROP TABLE IF EXISTS `Booking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Booking` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `image_id` int(11) DEFAULT NULL,
  `gender_id` int(11) DEFAULT NULL,
  `education_id` int(11) DEFAULT NULL,
  `public_id` int(11) DEFAULT NULL,
  `jury_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additionalInformation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `visibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `report` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `comment` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isCanceled` tinyint(1) DEFAULT 0,
  `object` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `establishment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `specialClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationalDevice` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `silentPartner_id` int(11) DEFAULT NULL,
  `ageDistribution_id` int(11) DEFAULT NULL,
  `operationalPartner_id` int(11) DEFAULT NULL,
  `approval` tinyint(1) DEFAULT 0,
  `unpaidLeave` int(11) DEFAULT 0,
  `placeSystem_id` int(11) DEFAULT NULL,
  `isDuplicate` tinyint(1) DEFAULT 0,
  `openAgendaId` int(11) DEFAULT NULL,
  `urlTicket` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `uuid` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2FB1D44232C8A3DE` (`organization_id`),
  KEY `IDX_2FB1D442DA6A219` (`place_id`),
  KEY `IDX_2FB1D44254177093` (`room_id`),
  KEY `IDX_2FB1D442727ACA70` (`parent_id`),
  KEY `IDX_2FB1D4423DA5256D` (`image_id`),
  KEY `IDX_2FB1D442708A0E0` (`gender_id`),
  KEY `IDX_2FB1D4422CA1BD71` (`education_id`),
  KEY `IDX_2FB1D4422B716444` (`silentPartner_id`),
  KEY `IDX_2FB1D442B5B48B91` (`public_id`),
  KEY `IDX_2FB1D4424E4D2AE4` (`ageDistribution_id`),
  KEY `IDX_2FB1D442B39FA57` (`operationalPartner_id`),
  KEY `IDX_2FB1D442E560103C` (`jury_id`),
  KEY `IDX_2FB1D4424FEA67CF` (`access_id`),
  KEY `IDX_2FB1D44256FF0FE5` (`placeSystem_id`),
  KEY `viewIndex` (`discr`,`datetimeEnd`,`visibility`,`isCanceled`),
  CONSTRAINT `FK_2FB1D4422B716444` FOREIGN KEY (`silentPartner_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D4422CA1BD71` FOREIGN KEY (`education_id`) REFERENCES `Education` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D44232C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_2FB1D4423DA5256D` FOREIGN KEY (`image_id`) REFERENCES `File` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D4424E4D2AE4` FOREIGN KEY (`ageDistribution_id`) REFERENCES `EducationalProjectAge` (`id`),
  CONSTRAINT `FK_2FB1D4424FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_2FB1D44254177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D44256FF0FE5` FOREIGN KEY (`placeSystem_id`) REFERENCES `Place` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D442708A0E0` FOREIGN KEY (`gender_id`) REFERENCES `EventGender` (`id`),
  CONSTRAINT `FK_2FB1D442727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_2FB1D442B39FA57` FOREIGN KEY (`operationalPartner_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D442B5B48B91` FOREIGN KEY (`public_id`) REFERENCES `EducationalProjectPublic` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D442DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_2FB1D442E560103C` FOREIGN KEY (`jury_id`) REFERENCES `Jury` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=352608 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `BookingRecur`
--

DROP TABLE IF EXISTS `BookingRecur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `BookingRecur` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event_id` int(11) DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci NOT NULL,
  `withoutHollidayAndBank` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_735E0DF071F7E88B` (`event_id`),
  CONSTRAINT `FK_735E0DF071F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=144267 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CalendarSynchro`
--

DROP TABLE IF EXISTS `CalendarSynchro`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CalendarSynchro` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) DEFAULT NULL,
  `file_id` int(11) DEFAULT NULL,
  `hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `types` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `eventsHaveChanged` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F1BDDDF84FEA67CF` (`access_id`),
  UNIQUE KEY `UNIQ_F1BDDDF893CB796C` (`file_id`),
  CONSTRAINT `FK_F1BDDDF84FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_F1BDDDF893CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=319 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Categories`
--

DROP TABLE IF EXISTS `Categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `familly_id` int(11) NOT NULL,
  `subfamilly_id` int(11) NOT NULL,
  `gender_id` int(11) NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_75AE45B88D6893A3` (`familly_id`),
  KEY `IDX_75AE45B8D2F97400` (`subfamilly_id`),
  KEY `IDX_75AE45B8708A0E0` (`gender_id`),
  CONSTRAINT `FK_75AE45B8708A0E0` FOREIGN KEY (`gender_id`) REFERENCES `Gender` (`id`),
  CONSTRAINT `FK_75AE45B88D6893A3` FOREIGN KEY (`familly_id`) REFERENCES `Familly` (`id`),
  CONSTRAINT `FK_75AE45B8D2F97400` FOREIGN KEY (`subfamilly_id`) REFERENCES `Subfamilly` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=323 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Ciril`
--

DROP TABLE IF EXISTS `Ciril`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Ciril` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_38112CAE93CB796C` (`file_id`),
  CONSTRAINT `FK_38112CAE93CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=166 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `City`
--

DROP TABLE IF EXISTS `City`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `City` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `department_id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `latitude` double DEFAULT NULL,
  `longitude` double DEFAULT NULL,
  `postalCode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8D69AD0AAE80F5DF` (`department_id`),
  CONSTRAINT `FK_8D69AD0AAE80F5DF` FOREIGN KEY (`department_id`) REFERENCES `Department` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=57876 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Commission`
--

DROP TABLE IF EXISTS `Commission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Commission` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `name` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(127) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_5338028832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_5338028832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=780 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CommissionMember`
--

DROP TABLE IF EXISTS `CommissionMember`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CommissionMember` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `commission_id` int(11) NOT NULL,
  `member_id` int(11) NOT NULL,
  `commissionMemberFunction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `functionComplement` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `causeOutput` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A40E7A3C202D1EB2` (`commission_id`),
  KEY `IDX_A40E7A3C7597D3FE` (`member_id`),
  CONSTRAINT `FK_A40E7A3C202D1EB2` FOREIGN KEY (`commission_id`) REFERENCES `Commission` (`id`),
  CONSTRAINT `FK_A40E7A3C7597D3FE` FOREIGN KEY (`member_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4849 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CompanyPerson`
--

DROP TABLE IF EXISTS `CompanyPerson`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CompanyPerson` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  `mission` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_4DC7D14C979B1AD6` (`company_id`),
  KEY `IDX_4DC7D14C4FEA67CF` (`access_id`),
  CONSTRAINT `FK_4DC7D14C4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_4DC7D14C979B1AD6` FOREIGN KEY (`company_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6204 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ContactPoint`
--

DROP TABLE IF EXISTS `ContactPoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ContactPoint` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `contactType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `emailInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `faxNumber` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `faxNumberInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `telphone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `telphoneInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mobilPhone` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:phone_number)',
  `mobilPhoneInvalid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `invalidReason` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `invalidStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `invalidEmailBody` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `invalidCat` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `email` (`email`),
  FULLTEXT KEY `telphone_fulltext` (`telphone`),
  FULLTEXT KEY `email_fulltext` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=632411 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Control`
--

DROP TABLE IF EXISTS `Control`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Control` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `accompanist_id` int(11) DEFAULT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `equipment_id` int(11) DEFAULT NULL,
  `controlType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `report` tinyint(1) DEFAULT NULL,
  `operator` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `finding` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `workDoing` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `lifeBalance` int(11) DEFAULT NULL,
  `usedDuration` int(11) DEFAULT NULL,
  `balanceUsefulLife` int(11) DEFAULT NULL,
  `nextControl` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_226615D7101649E2` (`accompanist_id`),
  KEY `IDX_226615D7DA6A219` (`place_id`),
  KEY `IDX_226615D754177093` (`room_id`),
  KEY `IDX_226615D7517FE9FE` (`equipment_id`),
  CONSTRAINT `FK_226615D7101649E2` FOREIGN KEY (`accompanist_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_226615D7517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_226615D754177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`),
  CONSTRAINT `FK_226615D7DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=875 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CotisationByYear`
--

DROP TABLE IF EXISTS `CotisationByYear`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CotisationByYear` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1416C44932C8A3DE` (`organization_id`),
  CONSTRAINT `FK_1416C44932C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9076 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CotisationStaffInfos`
--

DROP TABLE IF EXISTS `CotisationStaffInfos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CotisationStaffInfos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `numberOfEmployees` int(11) DEFAULT NULL,
  `numberOfTeachers` int(11) DEFAULT NULL,
  `totalFullTimeEquivalents` int(11) DEFAULT NULL,
  `numberOfMinors` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `cotisationByYear_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_7E61112A64CCA264` (`cotisationByYear_id`),
  CONSTRAINT `FK_7E61112A64CCA264` FOREIGN KEY (`cotisationByYear_id`) REFERENCES `CotisationByYear` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9076 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Country`
--

DROP TABLE IF EXISTS `Country`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Country` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=242 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CriteriaNotation`
--

DROP TABLE IF EXISTS `CriteriaNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CriteriaNotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `noteMax` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F3784FC632C8A3DE` (`organization_id`),
  CONSTRAINT `FK_F3784FC632C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=179416 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CustomNotation`
--

DROP TABLE IF EXISTS `CustomNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CustomNotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `criteriaNotation_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_456B2EABFCD8F3E1` (`criteriaNotation_id`),
  CONSTRAINT `FK_456B2EABFCD8F3E1` FOREIGN KEY (`criteriaNotation_id`) REFERENCES `CriteriaNotation` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=439 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Cycle`
--

DROP TABLE IF EXISTS `Cycle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Cycle` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `order` int(11) DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `cycleEnum` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isSystem` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_7147FE9732C8A3DE` (`organization_id`),
  CONSTRAINT `FK_7147FE9732C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36044 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `CycleByEducation`
--

DROP TABLE IF EXISTS `CycleByEducation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `CycleByEducation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `education_id` int(11) DEFAULT NULL,
  `cycle_id` int(11) DEFAULT NULL,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `years` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_74ADD0722CA1BD71` (`education_id`),
  KEY `IDX_74ADD0725EC1162` (`cycle_id`),
  CONSTRAINT `FK_74ADD0722CA1BD71` FOREIGN KEY (`education_id`) REFERENCES `Education` (`id`),
  CONSTRAINT `FK_74ADD0725EC1162` FOREIGN KEY (`cycle_id`) REFERENCES `Cycle` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Department`
--

DROP TABLE IF EXISTS `Department`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Department` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `region_id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `departmentNumber` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8240E25A98260155` (`region_id`),
  CONSTRAINT `FK_8240E25A98260155` FOREIGN KEY (`region_id`) REFERENCES `Region` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=233 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `DisciplineOtherEstablishment`
--

DROP TABLE IF EXISTS `DisciplineOtherEstablishment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `DisciplineOtherEstablishment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `year` int(11) DEFAULT NULL,
  `establishmentName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cityName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acquired` tinyint(1) NOT NULL DEFAULT 0,
  `level` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_E88E6D23217BBB47` (`person_id`),
  CONSTRAINT `FK_E88E6D23217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1499 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Document`
--

DROP TABLE IF EXISTS `Document`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Document` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `author_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `about` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `headline` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `text` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isSystem` tinyint(1) NOT NULL DEFAULT 0,
  `template` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_211FE820989D9B62` (`slug`),
  KEY `IDX_211FE820F675F31B` (`author_id`),
  KEY `IDX_211FE82032C8A3DE` (`organization_id`),
  CONSTRAINT `FK_211FE82032C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_211FE820F675F31B` FOREIGN KEY (`author_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `DocumentWish`
--

DROP TABLE IF EXISTS `DocumentWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `DocumentWish` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'OTHER',
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `accessWish_id` int(11) DEFAULT NULL,
  `personOwner_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_F113EB1186BD7DB5` (`accessWish_id`),
  KEY `IDX_F113EB11D19C515B` (`personOwner_id`),
  CONSTRAINT `FK_F113EB1186BD7DB5` FOREIGN KEY (`accessWish_id`) REFERENCES `AccessWish` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_F113EB11D19C515B` FOREIGN KEY (`personOwner_id`) REFERENCES `Person` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=21244 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Donor`
--

DROP TABLE IF EXISTS `Donor`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Donor` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `wording` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `paymentDate` date DEFAULT NULL,
  `emailVisibility` tinyint(1) DEFAULT 0,
  `logoVisibility` tinyint(1) DEFAULT 0,
  `donorVisibility` tinyint(1) DEFAULT 0,
  `displayedOn` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:simple_array)',
  `federationDisplay` tinyint(1) DEFAULT 0,
  `associationDisplay` tinyint(1) DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_16336F934FEA67CF` (`access_id`),
  KEY `IDX_16336F9332C8A3DE` (`organization_id`),
  CONSTRAINT `FK_16336F9332C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_16336F934FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7332 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Education`
--

DROP TABLE IF EXISTS `Education`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Education` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `legacyId` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hasCycle` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `educationCategory_id` int(11) NOT NULL,
  `educationComplement_id` int(11) NOT NULL,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `availablePlaces` int(11) DEFAULT NULL,
  `availablePlacesAccordingToLevel` tinyint(1) NOT NULL DEFAULT 0,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationalTarget` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationalContent` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `howToEvaluate` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `prerequisite` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  `isACollectivePractice` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_59FBDC71AA6D1560` (`educationCategory_id`),
  KEY `IDX_59FBDC71AA0F995A` (`educationComplement_id`),
  KEY `IDX_59FBDC713C702A27` (`educationNotationConfig_id`),
  CONSTRAINT `FK_59FBDC713C702A27` FOREIGN KEY (`educationNotationConfig_id`) REFERENCES `EducationNotationConfig` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_59FBDC71AA0F995A` FOREIGN KEY (`educationComplement_id`) REFERENCES `EducationComplement` (`id`),
  CONSTRAINT `FK_59FBDC71AA6D1560` FOREIGN KEY (`educationCategory_id`) REFERENCES `EducationCategory` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11799 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationCategory`
--

DROP TABLE IF EXISTS `EducationCategory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationCategory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `educationTypeEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_B9F5C7C832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_B9F5C7C832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=46584 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationComplement`
--

DROP TABLE IF EXISTS `EducationComplement`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationComplement` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `educationTypeEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationCurriculum`
--

DROP TABLE IF EXISTS `EducationCurriculum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationCurriculum` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `education_id` int(11) DEFAULT NULL,
  `cycle_id` int(11) DEFAULT NULL,
  `legacyId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `year` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `level` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `isDisabled` tinyint(1) NOT NULL DEFAULT 0,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `duration` int(11) DEFAULT NULL,
  `nbStudentsMax` int(11) DEFAULT NULL,
  `nbStudentsByCourse` int(11) DEFAULT NULL,
  `packingRate` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `availablePlaces` int(11) DEFAULT NULL,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CB4B5CE02CA1BD71` (`education_id`),
  KEY `IDX_CB4B5CE05EC1162` (`cycle_id`),
  KEY `IDX_CB4B5CE03C702A27` (`educationNotationConfig_id`),
  CONSTRAINT `FK_CB4B5CE02CA1BD71` FOREIGN KEY (`education_id`) REFERENCES `Education` (`id`),
  CONSTRAINT `FK_CB4B5CE03C702A27` FOREIGN KEY (`educationNotationConfig_id`) REFERENCES `EducationNotationConfig` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_CB4B5CE05EC1162` FOREIGN KEY (`cycle_id`) REFERENCES `Cycle` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=73818 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationNotation`
--

DROP TABLE IF EXISTS `EducationNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationNotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `freeCriterion` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `period` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `note` decimal(10,2) DEFAULT NULL,
  `appreciation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isValid` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `educationStudent_id` int(11) NOT NULL,
  `criteriaNotation_id` int(11) DEFAULT NULL,
  `mention` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `criteriaNotationConfig_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_BDD1629C5DB9C22D` (`educationStudent_id`),
  KEY `IDX_BDD1629CFCD8F3E1` (`criteriaNotation_id`),
  KEY `IDX_BDD1629C61E59584` (`criteriaNotationConfig_id`),
  CONSTRAINT `FK_BDD1629C5DB9C22D` FOREIGN KEY (`educationStudent_id`) REFERENCES `EducationStudent` (`id`),
  CONSTRAINT `FK_BDD1629C61E59584` FOREIGN KEY (`criteriaNotationConfig_id`) REFERENCES `EducationNotationCriteriaConfig` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_BDD1629CFCD8F3E1` FOREIGN KEY (`criteriaNotation_id`) REFERENCES `CriteriaNotation` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=256578 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationNotationConfig`
--

DROP TABLE IF EXISTS `EducationNotationConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationNotationConfig` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isActive` tinyint(1) NOT NULL DEFAULT 1,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `coefficient` int(11) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_91E6BE032C8A3DE` (`organization_id`),
  CONSTRAINT `FK_91E6BE032C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationNotationCriteriaConfig`
--

DROP TABLE IF EXISTS `EducationNotationCriteriaConfig`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationNotationCriteriaConfig` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `coefficient` int(11) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `educationNotationConfig_id` int(11) DEFAULT NULL,
  `criteriaNotation_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_564C21343C702A27` (`educationNotationConfig_id`),
  KEY `IDX_564C2134FCD8F3E1` (`criteriaNotation_id`),
  CONSTRAINT `FK_564C21343C702A27` FOREIGN KEY (`educationNotationConfig_id`) REFERENCES `EducationNotationConfig` (`id`),
  CONSTRAINT `FK_564C2134FCD8F3E1` FOREIGN KEY (`criteriaNotation_id`) REFERENCES `CriteriaNotation` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationStudent`
--

DROP TABLE IF EXISTS `EducationStudent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationStudent` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `graduation` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acquired` tinyint(1) NOT NULL DEFAULT 0,
  `annualAppreciation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `educationCurriculum_id` int(11) DEFAULT NULL,
  `registeredFollowingYear` tinyint(1) NOT NULL DEFAULT 0,
  `days` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `time` time DEFAULT NULL,
  `educationStudentLastYear_id` int(11) DEFAULT NULL,
  `educationTiming_id` int(11) DEFAULT NULL,
  `speciality_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_DE9CB0004FEA67CF` (`access_id`),
  KEY `IDX_DE9CB000B03C0DD8` (`educationCurriculum_id`),
  KEY `IDX_DE9CB00077FD2522` (`educationStudentLastYear_id`),
  KEY `IDX_DE9CB0007CAEEDAE` (`educationTiming_id`),
  KEY `IDX_DE9CB0003B5A08D7` (`speciality_id`),
  CONSTRAINT `FK_DE9CB0003B5A08D7` FOREIGN KEY (`speciality_id`) REFERENCES `EquipmentList` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_DE9CB0004FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_DE9CB00077FD2522` FOREIGN KEY (`educationStudentLastYear_id`) REFERENCES `EducationStudent` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_DE9CB0007CAEEDAE` FOREIGN KEY (`educationTiming_id`) REFERENCES `EducationTiming` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_DE9CB000B03C0DD8` FOREIGN KEY (`educationCurriculum_id`) REFERENCES `EducationCurriculum` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=590257 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationStudentWish`
--

DROP TABLE IF EXISTS `EducationStudentWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationStudentWish` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `days` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `time` time DEFAULT NULL,
  `registeredFollowingYear` tinyint(1) NOT NULL DEFAULT 0,
  `wishRegistration` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'NO_INFORMATION',
  `registrationStatus` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'NEGOTIABLE',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `educationWish_id` int(11) DEFAULT NULL,
  `accessWish_id` int(11) DEFAULT NULL,
  `accessWishReregistrations_id` int(11) DEFAULT NULL,
  `alreadyValidate` tinyint(1) NOT NULL DEFAULT 0,
  `educationCurriculum_id` int(11) DEFAULT NULL,
  `educationStudent_id` int(11) DEFAULT NULL,
  `educationTiming_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_E221F223C3852D6` (`educationWish_id`),
  KEY `IDX_E221F2286BD7DB5` (`accessWish_id`),
  KEY `IDX_E221F223B7BF031` (`accessWishReregistrations_id`),
  KEY `IDX_E221F22B03C0DD8` (`educationCurriculum_id`),
  KEY `IDX_E221F225DB9C22D` (`educationStudent_id`),
  KEY `IDX_E221F227CAEEDAE` (`educationTiming_id`),
  CONSTRAINT `FK_E221F223B7BF031` FOREIGN KEY (`accessWishReregistrations_id`) REFERENCES `AccessWish` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E221F223C3852D6` FOREIGN KEY (`educationWish_id`) REFERENCES `Education` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E221F225DB9C22D` FOREIGN KEY (`educationStudent_id`) REFERENCES `EducationStudent` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E221F227CAEEDAE` FOREIGN KEY (`educationTiming_id`) REFERENCES `EducationTiming` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E221F2286BD7DB5` FOREIGN KEY (`accessWish_id`) REFERENCES `AccessWish` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_E221F22B03C0DD8` FOREIGN KEY (`educationCurriculum_id`) REFERENCES `EducationCurriculum` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=65243 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationTeacher`
--

DROP TABLE IF EXISTS `EducationTeacher`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationTeacher` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `education_id` int(11) DEFAULT NULL,
  `teacher_id` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_D949B9E62CA1BD71` (`education_id`),
  KEY `IDX_D949B9E641807E1D` (`teacher_id`),
  CONSTRAINT `FK_D949B9E62CA1BD71` FOREIGN KEY (`education_id`) REFERENCES `Education` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_D949B9E641807E1D` FOREIGN KEY (`teacher_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17254 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationTiming`
--

DROP TABLE IF EXISTS `EducationTiming`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationTiming` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `timing` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AA6C5B7832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_AA6C5B7832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=540 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationalProjectAge`
--

DROP TABLE IF EXISTS `EducationalProjectAge`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationalProjectAge` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `rep0to3` int(11) DEFAULT NULL,
  `rep4to6` int(11) DEFAULT NULL,
  `rep7to11` int(11) DEFAULT NULL,
  `rep12to15` int(11) DEFAULT NULL,
  `rep16to25` int(11) DEFAULT NULL,
  `repAdult` int(11) DEFAULT NULL,
  `repSenior` int(11) DEFAULT NULL,
  `total` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14642 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EducationalProjectPublic`
--

DROP TABLE IF EXISTS `EducationalProjectPublic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EducationalProjectPublic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `familly` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `subFamilly` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ElasticaSynchro`
--

DROP TABLE IF EXISTS `ElasticaSynchro`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ElasticaSynchro` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `entity` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `entityId` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `operation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `happenDuringPopulate` tinyint(1) NOT NULL DEFAULT 0,
  `lockRecord` tinyint(1) NOT NULL DEFAULT 0,
  `changeFields` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EquipmentComposition`
--

DROP TABLE IF EXISTS `EquipmentComposition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EquipmentComposition` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) NOT NULL,
  `children_id` int(11) NOT NULL,
  `quantity` int(11) NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_DA5F983D727ACA70` (`parent_id`),
  KEY `IDX_DA5F983D3D3D2749` (`children_id`),
  CONSTRAINT `FK_DA5F983D3D3D2749` FOREIGN KEY (`children_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_DA5F983D727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `Product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1055 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EquipmentList`
--

DROP TABLE IF EXISTS `EquipmentList`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EquipmentList` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `familly` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `groupement` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `detail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=744 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EquipmentLoan`
--

DROP TABLE IF EXISTS `EquipmentLoan`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EquipmentLoan` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `borrower_id` int(11) NOT NULL,
  `equipment_id` int(11) DEFAULT NULL,
  `endDateTheorical` date DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deposit` double DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `forcingAmount` tinyint(1) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `rule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AA74385311CE312B` (`borrower_id`),
  KEY `IDX_AA743853517FE9FE` (`equipment_id`),
  CONSTRAINT `FK_AA74385311CE312B` FOREIGN KEY (`borrower_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_AA743853517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27267 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EventGender`
--

DROP TABLE IF EXISTS `EventGender`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EventGender` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EventReport`
--

DROP TABLE IF EXISTS `EventReport`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EventReport` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event_id` int(11) DEFAULT NULL,
  `report` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_8E3CA0D571F7E88B` (`event_id`),
  CONSTRAINT `FK_8E3CA0D571F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4992 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `EventUser`
--

DROP TABLE IF EXISTS `EventUser`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `EventUser` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `event_id` int(11) DEFAULT NULL,
  `guest_id` int(11) DEFAULT NULL,
  `participation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `statusMail` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'READY',
  `datetimeStart` datetime NOT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `attendance` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_F3F427FD71F7E88B` (`event_id`),
  KEY `IDX_F3F427FD9A4AA658` (`guest_id`),
  KEY `participation` (`participation`),
  KEY `datetimeStart` (`datetimeStart`),
  CONSTRAINT `FK_F3F427FD71F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_F3F427FD9A4AA658` FOREIGN KEY (`guest_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4656119 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ExamenConvocation`
--

DROP TABLE IF EXISTS `ExamenConvocation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ExamenConvocation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `examen_id` int(11) DEFAULT NULL,
  `student_id` int(11) NOT NULL,
  `info` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `level` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `time` time DEFAULT NULL,
  `note` double DEFAULT NULL,
  `mention` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `appreciation` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `isConvocated` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_F30FE2D55C8659A` (`examen_id`),
  KEY `IDX_F30FE2D5CB944F1A` (`student_id`),
  CONSTRAINT `FK_F30FE2D55C8659A` FOREIGN KEY (`examen_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_F30FE2D5CB944F1A` FOREIGN KEY (`student_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10592 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Familly`
--

DROP TABLE IF EXISTS `Familly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Familly` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `FamilyQuotient`
--

DROP TABLE IF EXISTS `FamilyQuotient`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `FamilyQuotient` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sliceName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lowerBound` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `upperBound` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `billingSetting_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_C712276A58E77DE1` (`billingSetting_id`),
  CONSTRAINT `FK_C712276A58E77DE1` FOREIGN KEY (`billingSetting_id`) REFERENCES `BillingSetting` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=324 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `FictionalIntangible`
--

DROP TABLE IF EXISTS `FictionalIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `FictionalIntangible` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `pricingLineAdhesion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `billingPeriodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `File`
--

DROP TABLE IF EXISTS `File`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `File` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mimeType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visibility` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `accessRoles` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `config` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `folder` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'NONE',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `eventReport_id` int(11) DEFAULT NULL,
  `availabilityDate` date DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `isTemporaryFile` tinyint(1) NOT NULL DEFAULT 0,
  `documentWish_id` int(11) DEFAULT NULL,
  `onlineRegistrationSetting_id` int(11) DEFAULT NULL,
  `templateSystem_id` int(11) DEFAULT NULL,
  `work_id` int(11) DEFAULT NULL,
  `onlineRegistrationSettingNewEnrolments_id` int(11) DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_2CAD992E217BBB47` (`person_id`),
  KEY `IDX_2CAD992E32C8A3DE` (`organization_id`),
  KEY `IDX_2CAD992EA10F8AD3` (`eventReport_id`),
  KEY `IDX_2CAD992ECA5459E1` (`documentWish_id`),
  KEY `visibility` (`visibility`),
  KEY `folder` (`folder`),
  KEY `IDX_2CAD992ED92B21B` (`onlineRegistrationSetting_id`),
  KEY `IDX_2CAD992E23F2D815` (`templateSystem_id`),
  KEY `IDX_2CAD992EBB3453DB` (`work_id`),
  KEY `IDX_2CAD992EB6F1F275` (`onlineRegistrationSettingNewEnrolments_id`),
  CONSTRAINT `FK_2CAD992E217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`),
  CONSTRAINT `FK_2CAD992E23F2D815` FOREIGN KEY (`templateSystem_id`) REFERENCES `TemplateSystem` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2CAD992E32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_2CAD992EA10F8AD3` FOREIGN KEY (`eventReport_id`) REFERENCES `EventReport` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2CAD992EB6F1F275` FOREIGN KEY (`onlineRegistrationSettingNewEnrolments_id`) REFERENCES `OnlineRegistrationSettings` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2CAD992EBB3453DB` FOREIGN KEY (`work_id`) REFERENCES `Work` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2CAD992ECA5459E1` FOREIGN KEY (`documentWish_id`) REFERENCES `DocumentWish` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_2CAD992ED92B21B` FOREIGN KEY (`onlineRegistrationSetting_id`) REFERENCES `OnlineRegistrationSettings` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=900784 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `FunctionType`
--

DROP TABLE IF EXISTS `FunctionType`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `FunctionType` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `functionType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `mission` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `roleByDefault` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Gender`
--

DROP TABLE IF EXISTS `Gender`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Gender` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Help`
--

DROP TABLE IF EXISTS `Help`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Help` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Information`
--

DROP TABLE IF EXISTS `Information`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Information` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `datetimeStart` datetime DEFAULT NULL,
  `datetimeEnd` datetime DEFAULT NULL,
  `activate` tinyint(1) NOT NULL DEFAULT 1,
  `isSystem` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `message` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipientAccess_id` int(11) DEFAULT NULL,
  `recipientOrganization_id` int(11) DEFAULT NULL,
  `content` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `priorityLevelEnum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tipsAccessFilters` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `availabilityDate` date DEFAULT NULL,
  `legalStatus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AFE59754DC3F108` (`recipientAccess_id`),
  KEY `IDX_AFE59754CE47E678` (`recipientOrganization_id`),
  CONSTRAINT `FK_AFE59754CE47E678` FOREIGN KEY (`recipientOrganization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_AFE59754DC3F108` FOREIGN KEY (`recipientAccess_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=677919 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `IntangibleDiscountDetail`
--

DROP TABLE IF EXISTS `IntangibleDiscountDetail`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `IntangibleDiscountDetail` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `pricingLine` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `price` double DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `intangiblePriceAndDiscount_id` int(11) NOT NULL,
  `residenceArea_id` int(11) DEFAULT NULL,
  `familyQuotient_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A3FF99E5FE6CDC79` (`intangiblePriceAndDiscount_id`),
  KEY `IDX_A3FF99E5D6E8C61` (`residenceArea_id`),
  KEY `IDX_A3FF99E524DE7AD6` (`familyQuotient_id`),
  CONSTRAINT `FK_A3FF99E524DE7AD6` FOREIGN KEY (`familyQuotient_id`) REFERENCES `FamilyQuotient` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A3FF99E5D6E8C61` FOREIGN KEY (`residenceArea_id`) REFERENCES `ResidenceArea` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_A3FF99E5FE6CDC79` FOREIGN KEY (`intangiblePriceAndDiscount_id`) REFERENCES `IntangiblePriceAndDiscount` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33585 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `IntangiblePriceAndDiscount`
--

DROP TABLE IF EXISTS `IntangiblePriceAndDiscount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `IntangiblePriceAndDiscount` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `amountType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `applyDiscount` tinyint(1) NOT NULL DEFAULT 1,
  `price` double DEFAULT NULL,
  `automaticDiscountCalculation` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7203 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Jury`
--

DROP TABLE IF EXISTS `Jury`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Jury` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `name` varchar(35) COLLATE utf8_unicode_ci NOT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B3071F1232C8A3DE` (`organization_id`),
  CONSTRAINT `FK_B3071F1232C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=749 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Jvs`
--

DROP TABLE IF EXISTS `Jvs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Jvs` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `samplingDate` date DEFAULT NULL,
  `withSampling` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_32252FF293CB796C` (`file_id`),
  CONSTRAINT `FK_32252FF293CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `LoginLog`
--

DROP TABLE IF EXISTS `LoginLog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `LoginLog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `login` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `navigateur` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `organizationId` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=741 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Medal`
--

DROP TABLE IF EXISTS `Medal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Medal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `medalDate` date DEFAULT NULL,
  `medalType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `otherMedalType` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_1D8578BD4FEA67CF` (`access_id`),
  CONSTRAINT `FK_1D8578BD4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9246 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Medical`
--

DROP TABLE IF EXISTS `Medical`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Medical` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `doctor` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `doctorePhone` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `comments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `certificate` tinyint(1) DEFAULT NULL,
  `insuranceCertificate` tinyint(1) DEFAULT NULL,
  `insuranceName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `insuranceNumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `healthPass` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107485 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Message`
--

DROP TABLE IF EXISTS `Message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Message` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `author_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `sender` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'ORGANIZATION',
  `sendTo` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'MEMBER_AND_GUARDIANS',
  `sharingWithAdministration` tinyint(1) NOT NULL DEFAULT 0,
  `about` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `headline` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `text` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'DRAFT',
  `isSystem` tinyint(1) NOT NULL DEFAULT 0,
  `template` tinyint(1) NOT NULL DEFAULT 0,
  `recipientRule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `dateSent` datetime DEFAULT NULL,
  `reference` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acknowledgment` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `recipientCcRule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipientCciRule` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `recipientMulti` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `mailAttached_id` int(11) DEFAULT NULL,
  `childrenOrganization` tinyint(1) NOT NULL DEFAULT 0,
  `uuid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_790009E3D17F50A6` (`uuid`),
  KEY `IDX_790009E3F675F31B` (`author_id`),
  KEY `IDX_790009E332C8A3DE` (`organization_id`),
  KEY `IDX_790009E3A70A255D` (`mailAttached_id`),
  CONSTRAINT `FK_790009E332C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_790009E3A70A255D` FOREIGN KEY (`mailAttached_id`) REFERENCES `Message` (`id`),
  CONSTRAINT `FK_790009E3F675F31B` FOREIGN KEY (`author_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=711659 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `MigrationLog`
--

DROP TABLE IF EXISTS `MigrationLog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `MigrationLog` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `message` text DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `code` char(5) DEFAULT '00000',
  `date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=972469 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Network`
--

DROP TABLE IF EXISTS `Network`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Network` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `logo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `image_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AF39BE203DA5256D` (`image_id`),
  CONSTRAINT `FK_AF39BE203DA5256D` FOREIGN KEY (`image_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `NetworkOrganization`
--

DROP TABLE IF EXISTS `NetworkOrganization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `NetworkOrganization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `network_id` int(11) NOT NULL,
  `organization_id` int(11) NOT NULL,
  `leadingCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_63E8D23634128B91` (`network_id`),
  KEY `IDX_63E8D23632C8A3DE` (`organization_id`),
  KEY `IDX_63E8D236727ACA70` (`parent_id`),
  KEY `viewIndex` (`endDate`),
  CONSTRAINT `FK_63E8D23632C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_63E8D23634128B91` FOREIGN KEY (`network_id`) REFERENCES `Network` (`id`),
  CONSTRAINT `FK_63E8D236727ACA70` FOREIGN KEY (`parent_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6981 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `NetworkOrganization_save`
--

DROP TABLE IF EXISTS `NetworkOrganization_save`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `NetworkOrganization_save` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `network_id` int(11) NOT NULL,
  `organization_id` int(11) NOT NULL,
  `leadingCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_63E8D23634128B91` (`network_id`),
  KEY `IDX_63E8D23632C8A3DE` (`organization_id`),
  KEY `IDX_63E8D236727ACA70` (`parent_id`),
  KEY `viewIndex` (`endDate`)
) ENGINE=InnoDB AUTO_INCREMENT=6906 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `NotificationUser`
--

DROP TABLE IF EXISTS `NotificationUser`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `NotificationUser` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `notification_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  `isRead` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_F61B2EC7EF1A9D84` (`notification_id`),
  KEY `IDX_F61B2EC74FEA67CF` (`access_id`),
  CONSTRAINT `FK_F61B2EC74FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_F61B2EC7EF1A9D84` FOREIGN KEY (`notification_id`) REFERENCES `Information` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=361107 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OnlineRegistrationDocument`
--

DROP TABLE IF EXISTS `OnlineRegistrationDocument`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OnlineRegistrationDocument` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isRequired` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `onlineRegistrationSettings_id` int(11) DEFAULT NULL,
  `guardiansOnlineRegistrationSettings_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_328D0A3E6D19E67B` (`onlineRegistrationSettings_id`),
  KEY `IDX_328D0A3E67B92859` (`guardiansOnlineRegistrationSettings_id`),
  CONSTRAINT `FK_328D0A3E67B92859` FOREIGN KEY (`guardiansOnlineRegistrationSettings_id`) REFERENCES `OnlineRegistrationSettings` (`id`),
  CONSTRAINT `FK_328D0A3E6D19E67B` FOREIGN KEY (`onlineRegistrationSettings_id`) REFERENCES `OnlineRegistrationSettings` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=562 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OnlineRegistrationOpeningPeriod`
--

DROP TABLE IF EXISTS `OnlineRegistrationOpeningPeriod`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OnlineRegistrationOpeningPeriod` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `startDate` date NOT NULL,
  `endDate` date NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `onlineRegistrationSettings_id` int(11) DEFAULT NULL,
  `onlineRegistrationSettingsNewEnrolments_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6BD64D4B6D19E67B` (`onlineRegistrationSettings_id`),
  KEY `IDX_6BD64D4B258FFF3` (`onlineRegistrationSettingsNewEnrolments_id`),
  CONSTRAINT `FK_6BD64D4B258FFF3` FOREIGN KEY (`onlineRegistrationSettingsNewEnrolments_id`) REFERENCES `OnlineRegistrationSettings` (`id`),
  CONSTRAINT `FK_6BD64D4B6D19E67B` FOREIGN KEY (`onlineRegistrationSettings_id`) REFERENCES `OnlineRegistrationSettings` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=570 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OnlineRegistrationSettings`
--

DROP TABLE IF EXISTS `OnlineRegistrationSettings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OnlineRegistrationSettings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `message` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `fieldManagement` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `fieldManagementResponsible` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `introductionMessage` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `introductionReadMoreToContinue` tinyint(1) NOT NULL DEFAULT 0,
  `approveRulesProcedureWish` tinyint(1) NOT NULL DEFAULT 0,
  `receiveInformationsFromOrganizationWish` tinyint(1) NOT NULL DEFAULT 0,
  `addNewStudents` tinyint(1) NOT NULL DEFAULT 0,
  `addNewEducations` tinyint(1) NOT NULL DEFAULT 0,
  `introductionMessageNewEnrolments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `introductionReadMoreToContinueNewEnrolments` tinyint(1) NOT NULL DEFAULT 0,
  `messageNewEnrolments` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `approveRulesProcedureWishNewEnrolments` tinyint(1) NOT NULL DEFAULT 0,
  `receiveInformationsFromOrganizationWishNewEnrolments` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_FA1208D32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_FA1208D32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OpeningHoursSpecification`
--

DROP TABLE IF EXISTS `OpeningHoursSpecification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OpeningHoursSpecification` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `closes` time DEFAULT NULL,
  `dayOfWeek` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:simple_array)',
  `opens` time DEFAULT NULL,
  `validFrom` datetime DEFAULT NULL,
  `validThrough` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Organization`
--

DROP TABLE IF EXISTS `Organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Organization` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `image_id` int(11) DEFAULT NULL,
  `logo_id` int(11) DEFAULT NULL,
  `parameters_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creationDate` date DEFAULT NULL,
  `identifier` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `declarationDate` date DEFAULT NULL,
  `legalStatus` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `siretNumber` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `waldecNumber` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `apeNumber` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tvaNumber` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `principalType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `otherType` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `acronym` varchar(80) COLLATE utf8_unicode_ci DEFAULT NULL,
  `facebook` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `twitter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `collectiveAgreement` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `opca` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `icomNumber` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `urssafNumber` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `youngApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `trainingApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherApproval` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prefectureName` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `prefectureNumber` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `schoolCategory` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeEstablishment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeEstablishmentDetail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `budget` double DEFAULT NULL,
  `isPedagogicIsPrincipalActivity` tinyint(1) DEFAULT NULL,
  `pedagogicBudget` double DEFAULT NULL,
  `isPerformanceContractor` tinyint(1) DEFAULT NULL,
  `ffecApproval` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `portailVisibility` tinyint(1) NOT NULL DEFAULT 0,
  `cmsId` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `contactPerson_id` int(11) DEFAULT NULL,
  `instagram` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherPractice` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `youtube` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `volumeAndFolioNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D9DFB88488BD9C1F` (`parameters_id`),
  KEY `IDX_D9DFB8843DA5256D` (`image_id`),
  KEY `IDX_D9DFB884F98F144A` (`logo_id`),
  KEY `IDX_D9DFB884176FE013` (`contactPerson_id`),
  CONSTRAINT `FK_D9DFB884176FE013` FOREIGN KEY (`contactPerson_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_D9DFB8843DA5256D` FOREIGN KEY (`image_id`) REFERENCES `File` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_D9DFB88488BD9C1F` FOREIGN KEY (`parameters_id`) REFERENCES `Parameters` (`id`),
  CONSTRAINT `FK_D9DFB884F98F144A` FOREIGN KEY (`logo_id`) REFERENCES `File` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=615929 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OrganizationAddressPostal`
--

DROP TABLE IF EXISTS `OrganizationAddressPostal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OrganizationAddressPostal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `addressPostal_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_97CFF98F4C4ED32B` (`addressPostal_id`),
  KEY `IDX_97CFF98F32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_97CFF98F32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_97CFF98F4C4ED32B` FOREIGN KEY (`addressPostal_id`) REFERENCES `AddressPostal` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11036 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OrganizationArticle`
--

DROP TABLE IF EXISTS `OrganizationArticle`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OrganizationArticle` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `title` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `link` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_17BE769832C8A3DE` (`organization_id`),
  CONSTRAINT `FK_17BE769832C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=156 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OrganizationFunction`
--

DROP TABLE IF EXISTS `OrganizationFunction`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OrganizationFunction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `activity_id` int(11) DEFAULT NULL,
  `functionComplement` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `departureCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isMemberSection` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `functionType_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_90BE4D5E4FEA67CF` (`access_id`),
  KEY `IDX_90BE4D5EC02DBF8E` (`functionType_id`),
  KEY `IDX_90BE4D5E81C06096` (`activity_id`),
  CONSTRAINT `FK_90BE4D5E4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_90BE4D5E81C06096` FOREIGN KEY (`activity_id`) REFERENCES `Activity` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_90BE4D5EC02DBF8E` FOREIGN KEY (`functionType_id`) REFERENCES `FunctionType` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=740092 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OrganizationLicence`
--

DROP TABLE IF EXISTS `OrganizationLicence`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OrganizationLicence` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `licensee_id` int(11) NOT NULL,
  `licenceNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `categorie` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `validityDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_82E9EB632C8A3DE` (`organization_id`),
  KEY `IDX_82E9EB6734B22EE` (`licensee_id`),
  CONSTRAINT `FK_82E9EB632C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_82E9EB6734B22EE` FOREIGN KEY (`licensee_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `OrganizationResponsability`
--

DROP TABLE IF EXISTS `OrganizationResponsability`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `OrganizationResponsability` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `responsability` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `isPhysical` tinyint(1) NOT NULL DEFAULT 1,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_AA30BBB84FEA67CF` (`access_id`),
  CONSTRAINT `FK_AA30BBB84FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=553 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Parameters`
--

DROP TABLE IF EXISTS `Parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Parameters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `financialDate` date DEFAULT NULL,
  `musicalDate` date DEFAULT NULL,
  `startCourseDate` date DEFAULT NULL,
  `endCourseDate` date DEFAULT NULL,
  `periodValidation` tinyint(1) NOT NULL DEFAULT 0,
  `editCriteriaNotationByAdminOnly` tinyint(1) NOT NULL DEFAULT 1,
  `smsSenderName` varchar(11) COLLATE utf8_unicode_ci DEFAULT NULL,
  `logoDonorsMove` tinyint(1) NOT NULL DEFAULT 0,
  `subDomain` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `website` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `otherWebsite` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `desactivateOpentalentSiteWeb` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinPeriod` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulletinWithTeacher` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinPrintAddress` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinSignatureDirector` tinyint(1) NOT NULL DEFAULT 1,
  `bulletinDisplayLevelAcquired` tinyint(1) NOT NULL DEFAULT 1,
  `bulletinShowEducationWithoutEvaluation` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinViewTestResults` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinShowAbsences` tinyint(1) NOT NULL DEFAULT 0,
  `bulletinOutput` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `usernameSMS` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `passwordSMS` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bulletinEditWithoutEvaluation` tinyint(1) NOT NULL DEFAULT 1,
  `bulletinReceiver` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'STUDENTS_AND_THEIR_GUARDIANS',
  `showAdherentList` tinyint(1) NOT NULL DEFAULT 1,
  `studentsAreAdherents` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `qrCode_id` int(11) DEFAULT NULL,
  `timezone` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'Europe/Paris',
  `bulletinShowAverages` tinyint(1) NOT NULL DEFAULT 1,
  `educationPeriodicity` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'ANNUAL',
  `average` int(11) NOT NULL DEFAULT 20,
  `advancedEducationNotationType` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'BY_EDUCATION',
  `sendAttendanceEmail` tinyint(1) NOT NULL DEFAULT 0,
  `sendAttendanceSms` tinyint(1) NOT NULL DEFAULT 0,
  `requiredValidation` tinyint(1) NOT NULL DEFAULT 0,
  `notifyAdministrationAbsence` tinyint(1) NOT NULL DEFAULT 0,
  `numberConsecutiveAbsences` int(11) NOT NULL DEFAULT 2,
  `createCourse` tinyint(1) NOT NULL DEFAULT 0,
  `updateCourse` tinyint(1) NOT NULL DEFAULT 0,
  `deleteCourse` tinyint(1) NOT NULL DEFAULT 0,
  `crudPedagogic` tinyint(1) NOT NULL DEFAULT 0,
  `generateAttendanceReport` tinyint(1) NOT NULL DEFAULT 1,
  `consultTeacherListing` tinyint(1) NOT NULL DEFAULT 1,
  `administrationCc` tinyint(1) NOT NULL DEFAULT 0,
  `consultPedagogicResult` tinyint(1) NOT NULL DEFAULT 1,
  `customDomain` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_49CE4B2E9AAF4D20` (`qrCode_id`),
  CONSTRAINT `FK_49CE4B2E9AAF4D20` FOREIGN KEY (`qrCode_id`) REFERENCES `File` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=6178 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PayboxPaymentReturn`
--

DROP TABLE IF EXISTS `PayboxPaymentReturn`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PayboxPaymentReturn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PayfipPaymentReturn`
--

DROP TABLE IF EXISTS `PayfipPaymentReturn`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PayfipPaymentReturn` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `bill_id` int(11) NOT NULL,
  `numcli` int(11) DEFAULT NULL,
  `exerc` int(11) DEFAULT NULL,
  `refdet` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `object` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `montant` int(11) DEFAULT NULL,
  `mel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `urlcl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `saisie` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `resultrans` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `numautoCb` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `numautoPrel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `dattrans` date DEFAULT NULL,
  `heurtrans` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_FC63C2981A8C12F5` (`bill_id`),
  CONSTRAINT `FK_FC63C2981A8C12F5` FOREIGN KEY (`bill_id`) REFERENCES `BillAccounting` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12915 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PeriodNotation`
--

DROP TABLE IF EXISTS `PeriodNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PeriodNotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_B9DBE23E32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_B9DBE23E32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Person`
--

DROP TABLE IF EXISTS `Person`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Person` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `image_id` int(11) DEFAULT NULL,
  `nationality_id` int(11) DEFAULT NULL,
  `medical_id` int(11) DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `username_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT 0,
  `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `confirmation_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password_requested_at` datetime DEFAULT NULL,
  `locked` tinyint(1) NOT NULL DEFAULT 0,
  `expired` tinyint(1) NOT NULL DEFAULT 0,
  `expires_at` datetime DEFAULT NULL,
  `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  `credentials_expired` tinyint(1) NOT NULL DEFAULT 0,
  `credentials_expire_at` datetime DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthPlace` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `insee` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeMoral` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isPhysical` tinyint(1) NOT NULL DEFAULT 1,
  `imageRight` tinyint(1) NOT NULL DEFAULT 1,
  `confidentiality` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:json_array)',
  `accessFavorite` int(11) DEFAULT NULL,
  `login_requested_at` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `profession` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_3370D440F85E0677` (`username`),
  UNIQUE KEY `UNIQ_3370D44092FC23A8` (`username_canonical`),
  UNIQUE KEY `UNIQ_3370D440592AF3BA` (`medical_id`),
  KEY `IDX_3370D4403DA5256D` (`image_id`),
  KEY `IDX_3370D4401C9DA55` (`nationality_id`),
  CONSTRAINT `FK_3370D4401C9DA55` FOREIGN KEY (`nationality_id`) REFERENCES `Country` (`id`),
  CONSTRAINT `FK_3370D4403DA5256D` FOREIGN KEY (`image_id`) REFERENCES `File` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_3370D440592AF3BA` FOREIGN KEY (`medical_id`) REFERENCES `Medical` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=653721 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PersonActivity`
--

DROP TABLE IF EXISTS `PersonActivity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PersonActivity` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `activity_id` int(11) DEFAULT NULL,
  `speciality_id` int(11) DEFAULT NULL,
  `complementSpeciality` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mainActivity` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CEB041204FEA67CF` (`access_id`),
  KEY `IDX_CEB0412081C06096` (`activity_id`),
  KEY `IDX_CEB041203B5A08D7` (`speciality_id`),
  CONSTRAINT `FK_CEB041203B5A08D7` FOREIGN KEY (`speciality_id`) REFERENCES `EquipmentList` (`id`),
  CONSTRAINT `FK_CEB041204FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_CEB0412081C06096` FOREIGN KEY (`activity_id`) REFERENCES `Activity` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=179525 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PersonAddressPostal`
--

DROP TABLE IF EXISTS `PersonAddressPostal`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PersonAddressPostal` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `addressPostal_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_258CD51A217BBB47` (`person_id`),
  KEY `IDX_258CD51A4C4ED32B` (`addressPostal_id`),
  CONSTRAINT `FK_258CD51A217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`),
  CONSTRAINT `FK_258CD51A4C4ED32B` FOREIGN KEY (`addressPostal_id`) REFERENCES `AddressPostal` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=544093 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Person_ori`
--

DROP TABLE IF EXISTS `Person_ori`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Person_ori` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `image_id` int(11) DEFAULT NULL,
  `nationality_id` int(11) DEFAULT NULL,
  `medical_id` int(11) DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `username_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email_canonical` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT 0,
  `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `confirmation_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password_requested_at` datetime DEFAULT NULL,
  `locked` tinyint(1) NOT NULL DEFAULT 0,
  `expired` tinyint(1) NOT NULL DEFAULT 0,
  `expires_at` datetime DEFAULT NULL,
  `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
  `credentials_expired` tinyint(1) NOT NULL DEFAULT 0,
  `credentials_expire_at` datetime DEFAULT NULL,
  `birthDate` date DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthPlace` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `insee` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `givenName` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `typeMoral` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isPhysical` tinyint(1) NOT NULL DEFAULT 1,
  `imageRight` tinyint(1) NOT NULL DEFAULT 1,
  `confidentiality` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:json_array)',
  `accessFavorite` int(11) DEFAULT NULL,
  `login_requested_at` datetime DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `profession` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_3370D440F85E0677` (`username`),
  UNIQUE KEY `UNIQ_3370D44092FC23A8` (`username_canonical`),
  UNIQUE KEY `UNIQ_3370D440592AF3BA` (`medical_id`),
  KEY `IDX_3370D4403DA5256D` (`image_id`),
  KEY `IDX_3370D4401C9DA55` (`nationality_id`)
) ENGINE=InnoDB AUTO_INCREMENT=622938 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Person_save`
--

DROP TABLE IF EXISTS `Person_save`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Person_save` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=622936 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PersonalizedList`
--

DROP TABLE IF EXISTS `PersonalizedList`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PersonalizedList` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `access_id` int(11) NOT NULL,
  `label` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `filters` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `entity` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  `columns` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `menuKey` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_F3FBBFE94FEA67CF` (`access_id`),
  CONSTRAINT `FK_F3FBBFE94FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7923 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Pes`
--

DROP TABLE IF EXISTS `Pes`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Pes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `roleNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `samplingDate` date DEFAULT NULL,
  `withSampling` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_427B48C693CB796C` (`file_id`),
  CONSTRAINT `FK_427B48C693CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=813 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `PesSetting`
--

DROP TABLE IF EXISTS `PesSetting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `PesSetting` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `idPost` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idCollTipi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codColl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `codProd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `libelleColBud` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `gestionnaire` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nameComptable` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `creditorIban` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorBic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorIcs` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineOneAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorLineTwoAddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorPublicInstitution` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `creditorType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_A310E2DC32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_A310E2DC32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Place`
--

DROP TABLE IF EXISTS `Place`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Place` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `internal` tinyint(1) DEFAULT 0,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sharing` tinyint(1) DEFAULT 0,
  `practice` tinyint(1) DEFAULT 0,
  `floorSize` int(11) DEFAULT NULL,
  `capacity` int(11) DEFAULT NULL,
  `isSystem` tinyint(1) DEFAULT 0,
  `siretNumber` varchar(14) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `addressPostal_id` int(11) DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B5DC7CC932C8A3DE` (`organization_id`),
  KEY `IDX_B5DC7CC94C4ED32B` (`addressPostal_id`),
  CONSTRAINT `FK_B5DC7CC932C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_B5DC7CC94C4ED32B` FOREIGN KEY (`addressPostal_id`) REFERENCES `AddressPostal` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=37550 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Product`
--

DROP TABLE IF EXISTS `Product`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Product` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `place_storage_id` int(11) DEFAULT NULL,
  `room_storage_id` int(11) DEFAULT NULL,
  `place_used_id` int(11) DEFAULT NULL,
  `room_used_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `editor_id` int(11) DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `outCauseDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `brand` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `model` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `productID` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `sku` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `purchaseDate` date DEFAULT NULL,
  `isSamePlaceToStockAndUsed` tinyint(1) DEFAULT 1,
  `additionalStoragePlace` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `skuComplementary` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `purchasePrice` double DEFAULT NULL,
  `billNumber` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tva` double DEFAULT NULL,
  `outCause` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isComposition` tinyint(1) DEFAULT 0,
  `qte` int(11) DEFAULT NULL,
  `detailedChecking` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `checking` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serviceLife` int(11) DEFAULT NULL,
  `maxUsedHour` int(11) DEFAULT NULL,
  `insurance` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `composer` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `arranger` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `referenceEditor` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `origin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `presenceDriver` tinyint(1) DEFAULT 0,
  `band` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `style` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `duration` int(11) DEFAULT NULL,
  `difficulty` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `breakingLoad` int(11) DEFAULT NULL,
  `mua` int(11) DEFAULT NULL,
  `cmu` int(11) DEFAULT NULL,
  `cmr` int(11) DEFAULT NULL,
  `verticalEffort` int(11) DEFAULT NULL,
  `horizontalEffort` int(11) DEFAULT NULL,
  `theoreticalServiceLifeControl` int(11) DEFAULT NULL,
  `maximumDurationOfUseControl` int(11) DEFAULT NULL,
  `periodicityControl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `equipmentList_id` int(11) DEFAULT NULL,
  `controlManager_id` int(11) DEFAULT NULL,
  `managerControl_id` int(11) DEFAULT NULL,
  `label` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `billingPeriodicityType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `billingPeriodicity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `isActive` tinyint(1) DEFAULT 1,
  `archiveDate` datetime DEFAULT NULL,
  `accountingCode` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nature` int(11) DEFAULT NULL,
  `accountingCodelabel` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  `applyVat` tinyint(1) DEFAULT 1,
  `amountVat` double DEFAULT NULL,
  `domain` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `intangiblePriceAndDiscount_id` int(11) DEFAULT NULL,
  `isbn` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `durationTime` time DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1CF73D3132C8A3DE` (`organization_id`),
  KEY `IDX_1CF73D314FEA67CF` (`access_id`),
  KEY `IDX_1CF73D3172054D98` (`place_storage_id`),
  KEY `IDX_1CF73D316837AB8C` (`room_storage_id`),
  KEY `IDX_1CF73D31E6D0CC2D` (`place_used_id`),
  KEY `IDX_1CF73D313E3E6736` (`room_used_id`),
  KEY `IDX_1CF73D31ACAEB7D4` (`equipmentList_id`),
  KEY `IDX_1CF73D312ADD6D8C` (`supplier_id`),
  KEY `IDX_1CF73D31CFC17CE` (`controlManager_id`),
  KEY `IDX_1CF73D316995AC4C` (`editor_id`),
  KEY `IDX_1CF73D317A54AAFA` (`managerControl_id`),
  KEY `IDX_1CF73D31FE6CDC79` (`intangiblePriceAndDiscount_id`),
  CONSTRAINT `FK_1CF73D312ADD6D8C` FOREIGN KEY (`supplier_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D3132C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_1CF73D313E3E6736` FOREIGN KEY (`room_used_id`) REFERENCES `Room` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D314FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_1CF73D316837AB8C` FOREIGN KEY (`room_storage_id`) REFERENCES `Room` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D316995AC4C` FOREIGN KEY (`editor_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D3172054D98` FOREIGN KEY (`place_storage_id`) REFERENCES `Place` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D317A54AAFA` FOREIGN KEY (`managerControl_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D31ACAEB7D4` FOREIGN KEY (`equipmentList_id`) REFERENCES `EquipmentList` (`id`),
  CONSTRAINT `FK_1CF73D31CFC17CE` FOREIGN KEY (`controlManager_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D31E6D0CC2D` FOREIGN KEY (`place_used_id`) REFERENCES `Place` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_1CF73D31FE6CDC79` FOREIGN KEY (`intangiblePriceAndDiscount_id`) REFERENCES `IntangiblePriceAndDiscount` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=184514 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Qualification`
--

DROP TABLE IF EXISTS `Qualification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Qualification` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `diploma` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `mention` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `establishment` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_46CBB3B217BBB47` (`person_id`),
  CONSTRAINT `FK_46CBB3B217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2559 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Region`
--

DROP TABLE IF EXISTS `Region`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Region` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_8CEF440F92F3E70` (`country_id`),
  CONSTRAINT `FK_8CEF440F92F3E70` FOREIGN KEY (`country_id`) REFERENCES `Country` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Repair`
--

DROP TABLE IF EXISTS `Repair`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Repair` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `provider_id` int(11) DEFAULT NULL,
  `place_id` int(11) DEFAULT NULL,
  `room_id` int(11) DEFAULT NULL,
  `equipment_id` int(11) DEFAULT NULL,
  `repairType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `workToDo` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `workDoing` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `cost` double DEFAULT NULL,
  `tva` double DEFAULT NULL,
  `invoiceNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `appreciation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `discr` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_89483117A53A8AA` (`provider_id`),
  KEY `IDX_89483117DA6A219` (`place_id`),
  KEY `IDX_8948311754177093` (`room_id`),
  KEY `IDX_89483117517FE9FE` (`equipment_id`),
  CONSTRAINT `FK_89483117517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_8948311754177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`),
  CONSTRAINT `FK_89483117A53A8AA` FOREIGN KEY (`provider_id`) REFERENCES `Access` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_89483117DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1393 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ReportMessage`
--

DROP TABLE IF EXISTS `ReportMessage`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ReportMessage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `message_id` int(11) DEFAULT NULL,
  `dateSend` datetime NOT NULL,
  `recipientType` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `recipientId` int(11) NOT NULL,
  `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `smsId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `access_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `addressEmail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_1ABE700A537A1329` (`message_id`),
  KEY `recipientType` (`recipientType`),
  KEY `recipientId` (`recipientId`),
  KEY `IDX_1ABE700A4FEA67CF` (`access_id`),
  KEY `IDX_1ABE700A32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_1ABE700A32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_1ABE700A4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_1ABE700A537A1329` FOREIGN KEY (`message_id`) REFERENCES `Message` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5462229 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `ResidenceArea`
--

DROP TABLE IF EXISTS `ResidenceArea`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ResidenceArea` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `billingSetting_id` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_573C45A458E77DE1` (`billingSetting_id`),
  CONSTRAINT `FK_573C45A458E77DE1` FOREIGN KEY (`billingSetting_id`) REFERENCES `BillingSetting` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=703 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Room`
--

DROP TABLE IF EXISTS `Room`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Room` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `place_id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `localisation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `capacity` int(11) DEFAULT NULL,
  `floorSize` int(11) DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_D2ADFEA5DA6A219` (`place_id`),
  CONSTRAINT `FK_D2ADFEA5DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12425 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `SchoolingInEstablishment`
--

DROP TABLE IF EXISTS `SchoolingInEstablishment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `SchoolingInEstablishment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) DEFAULT NULL,
  `establishmentName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cityName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `disponibility` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `className` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startYear` int(11) DEFAULT NULL,
  `endYear` int(11) DEFAULT NULL,
  `teacher` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_AA49B084217BBB47` (`person_id`),
  CONSTRAINT `FK_AA49B084217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38487 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `SddBank`
--

DROP TABLE IF EXISTS `SddBank`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `SddBank` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `samplingDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_29907FCD93CB796C` (`file_id`),
  CONSTRAINT `FK_29907FCD93CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `SddRegie`
--

DROP TABLE IF EXISTS `SddRegie`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `SddRegie` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `file_id` int(11) DEFAULT NULL,
  `bordereau_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `samplingDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D8430DF093CB796C` (`file_id`),
  UNIQUE KEY `UNIQ_D8430DF055D5304E` (`bordereau_id`),
  CONSTRAINT `FK_D8430DF055D5304E` FOREIGN KEY (`bordereau_id`) REFERENCES `File` (`id`),
  CONSTRAINT `FK_D8430DF093CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `SddTeneur`
--

DROP TABLE IF EXISTS `SddTeneur`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `SddTeneur` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `codique` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `libelle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `iban` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=128 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `SeizurePeriodNotation`
--

DROP TABLE IF EXISTS `SeizurePeriodNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `SeizurePeriodNotation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `startDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `educationTeacher_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_3EB6BA45D7ADF32A` (`educationTeacher_id`),
  CONSTRAINT `FK_3EB6BA45D7ADF32A` FOREIGN KEY (`educationTeacher_id`) REFERENCES `EducationTeacher` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=18381 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Settings`
--

DROP TABLE IF EXISTS `Settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Settings` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `product` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'school',
  `modules` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `actions` longtext COLLATE utf8_unicode_ci DEFAULT NULL COMMENT '(DC2Type:json_array)',
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'FRANCE',
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_1C33C29332C8A3DE` (`organization_id`),
  CONSTRAINT `FK_1C33C29332C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6199 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Subdomain`
--

DROP TABLE IF EXISTS `Subdomain`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Subdomain` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `subdomain` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_4324148D32C8A3DE` (`organization_id`),
  CONSTRAINT `FK_4324148D32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6534 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Subfamilly`
--

DROP TABLE IF EXISTS `Subfamilly`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Subfamilly` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Tag`
--

DROP TABLE IF EXISTS `Tag`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Tag` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tagging_id` int(11) DEFAULT NULL,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_3BC4F163F507479C` (`tagging_id`),
  CONSTRAINT `FK_3BC4F163F507479C` FOREIGN KEY (`tagging_id`) REFERENCES `Tagging` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=180060 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Tagg`
--

DROP TABLE IF EXISTS `Tagg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Tagg` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `label` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `color` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `textColor` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_D554EF6532C8A3DE` (`organization_id`),
  CONSTRAINT `FK_D554EF6532C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10652 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Tagging`
--

DROP TABLE IF EXISTS `Tagging`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Tagging` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) NOT NULL,
  `resourceType` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `resourceId` int(11) NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_6B13E8BF32C8A3DE` (`organization_id`),
  KEY `resourceId` (`resourceId`),
  KEY `resourceType` (`resourceType`),
  CONSTRAINT `FK_6B13E8BF32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=155054 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `TeacherSchoolingHistory`
--

DROP TABLE IF EXISTS `TeacherSchoolingHistory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `TeacherSchoolingHistory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `person_id` int(11) NOT NULL,
  `establishment` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `teaching` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `beginDate` date DEFAULT NULL,
  `endDate` date DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_E01D0ACC217BBB47` (`person_id`),
  CONSTRAINT `FK_E01D0ACC217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5560 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `TemplateSystem`
--

DROP TABLE IF EXISTS `TemplateSystem`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `TemplateSystem` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `organization_id` int(11) DEFAULT NULL,
  `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `text` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `template_organization_idx` (`template`,`organization_id`),
  KEY `IDX_BA6B533632C8A3DE` (`organization_id`),
  CONSTRAINT `FK_BA6B533632C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `TypeOfPractice`
--

DROP TABLE IF EXISTS `TypeOfPractice`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `TypeOfPractice` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `Work`
--

DROP TABLE IF EXISTS `Work`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `Work` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `course_id` int(11) DEFAULT NULL,
  `datetime` datetime NOT NULL,
  `work` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_F37CC7BE591CC992` (`course_id`),
  CONSTRAINT `FK_F37CC7BE591CC992` FOREIGN KEY (`course_id`) REFERENCES `Booking` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5368 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `WorkByUser`
--

DROP TABLE IF EXISTS `WorkByUser`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `WorkByUser` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `work_id` int(11) DEFAULT NULL,
  `student_id` int(11) DEFAULT NULL,
  `isDone` tinyint(1) NOT NULL DEFAULT 0,
  `createDate` datetime DEFAULT NULL,
  `updateDate` datetime DEFAULT NULL,
  `legacyId` int(11) DEFAULT NULL,
  `createdBy` int(11) DEFAULT NULL,
  `updatedBy` int(11) DEFAULT NULL,
  `draft` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `IDX_E6EBBA72BB3453DB` (`work_id`),
  KEY `IDX_E6EBBA72CB944F1A` (`student_id`),
  CONSTRAINT `FK_E6EBBA72BB3453DB` FOREIGN KEY (`work_id`) REFERENCES `Work` (`id`),
  CONSTRAINT `FK_E6EBBA72CB944F1A` FOREIGN KEY (`student_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24592 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `activity_categories`
--

DROP TABLE IF EXISTS `activity_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `activity_categories` (
  `activity_id` int(11) NOT NULL,
  `categories_id` int(11) NOT NULL,
  PRIMARY KEY (`activity_id`,`categories_id`),
  KEY `IDX_6F11786081C06096` (`activity_id`),
  KEY `IDX_6F117860A21214B7` (`categories_id`),
  CONSTRAINT `FK_6F11786081C06096` FOREIGN KEY (`activity_id`) REFERENCES `Activity` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6F117860A21214B7` FOREIGN KEY (`categories_id`) REFERENCES `Categories` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `billingexportsetting_access`
--

DROP TABLE IF EXISTS `billingexportsetting_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `billingexportsetting_access` (
  `billingexportsetting_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  PRIMARY KEY (`billingexportsetting_id`,`access_id`),
  KEY `IDX_B0C91EE66F95E24` (`billingexportsetting_id`),
  KEY `IDX_B0C91EE64FEA67CF` (`access_id`),
  CONSTRAINT `FK_B0C91EE64FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B0C91EE66F95E24` FOREIGN KEY (`billingexportsetting_id`) REFERENCES `BillingExportSetting` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `booking_equipment`
--

DROP TABLE IF EXISTS `booking_equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `booking_equipment` (
  `booking_id` int(11) NOT NULL,
  `equipment_id` int(11) NOT NULL,
  PRIMARY KEY (`booking_id`,`equipment_id`),
  KEY `IDX_400A1E803301C60` (`booking_id`),
  KEY `IDX_400A1E80517FE9FE` (`equipment_id`),
  CONSTRAINT `FK_400A1E803301C60` FOREIGN KEY (`booking_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_400A1E80517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `booking_organizer`
--

DROP TABLE IF EXISTS `booking_organizer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `booking_organizer` (
  `booking_id` int(11) NOT NULL,
  `organizer_id` int(11) NOT NULL,
  PRIMARY KEY (`booking_id`,`organizer_id`),
  KEY `IDX_AE6BA703301C60` (`booking_id`),
  KEY `IDX_AE6BA70876C4DDA` (`organizer_id`),
  CONSTRAINT `FK_AE6BA703301C60` FOREIGN KEY (`booking_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_AE6BA70876C4DDA` FOREIGN KEY (`organizer_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `children_guardians`
--

DROP TABLE IF EXISTS `children_guardians`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `children_guardians` (
  `guardians_id` int(11) NOT NULL,
  `children_id` int(11) NOT NULL,
  PRIMARY KEY (`guardians_id`,`children_id`),
  KEY `IDX_4FA529117B598B0` (`guardians_id`),
  KEY `IDX_4FA529113D3D2749` (`children_id`),
  CONSTRAINT `FK_4FA529113D3D2749` FOREIGN KEY (`children_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_4FA529117B598B0` FOREIGN KEY (`guardians_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `course_educationcurriculum`
--

DROP TABLE IF EXISTS `course_educationcurriculum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `course_educationcurriculum` (
  `course_id` int(11) NOT NULL,
  `educationcurriculum_id` int(11) NOT NULL,
  PRIMARY KEY (`course_id`,`educationcurriculum_id`),
  KEY `IDX_B60ADCB5591CC992` (`course_id`),
  KEY `IDX_B60ADCB5342462D` (`educationcurriculum_id`),
  CONSTRAINT `FK_B60ADCB5342462D` FOREIGN KEY (`educationcurriculum_id`) REFERENCES `EducationCurriculum` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B60ADCB5591CC992` FOREIGN KEY (`course_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `course_student`
--

DROP TABLE IF EXISTS `course_student`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `course_student` (
  `course_id` int(11) NOT NULL,
  `student_id` int(11) NOT NULL,
  PRIMARY KEY (`course_id`,`student_id`),
  KEY `IDX_BFE0AADF591CC992` (`course_id`),
  KEY `IDX_BFE0AADFCB944F1A` (`student_id`),
  CONSTRAINT `FK_BFE0AADF591CC992` FOREIGN KEY (`course_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_BFE0AADFCB944F1A` FOREIGN KEY (`student_id`) REFERENCES `Access` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `educationalproject_file`
--

DROP TABLE IF EXISTS `educationalproject_file`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `educationalproject_file` (
  `educationalproject_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  PRIMARY KEY (`educationalproject_id`,`file_id`),
  KEY `IDX_EAC810D77C348761` (`educationalproject_id`),
  KEY `IDX_EAC810D793CB796C` (`file_id`),
  CONSTRAINT `FK_EAC810D77C348761` FOREIGN KEY (`educationalproject_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_EAC810D793CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `educationalproject_financier`
--

DROP TABLE IF EXISTS `educationalproject_financier`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `educationalproject_financier` (
  `educationalproject_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  PRIMARY KEY (`educationalproject_id`,`access_id`),
  KEY `IDX_74DB62F67C348761` (`educationalproject_id`),
  KEY `IDX_74DB62F64FEA67CF` (`access_id`),
  CONSTRAINT `FK_74DB62F64FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_74DB62F67C348761` FOREIGN KEY (`educationalproject_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `educationcurriculum_educationtiming`
--

DROP TABLE IF EXISTS `educationcurriculum_educationtiming`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `educationcurriculum_educationtiming` (
  `educationCurriculum_id` int(11) NOT NULL,
  `educationTiming_id` int(11) NOT NULL,
  PRIMARY KEY (`educationCurriculum_id`,`educationTiming_id`),
  KEY `IDX_128055BDB03C0DD8` (`educationCurriculum_id`),
  KEY `IDX_128055BD7CAEEDAE` (`educationTiming_id`),
  CONSTRAINT `FK_128055BD7CAEEDAE` FOREIGN KEY (`educationTiming_id`) REFERENCES `EducationTiming` (`id`),
  CONSTRAINT `FK_128055BDB03C0DD8` FOREIGN KEY (`educationCurriculum_id`) REFERENCES `EducationCurriculum` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `educationstudent_teacher`
--

DROP TABLE IF EXISTS `educationstudent_teacher`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `educationstudent_teacher` (
  `educationstudent_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  PRIMARY KEY (`educationstudent_id`,`access_id`),
  KEY `IDX_CEB9DFEC12E4C1FD` (`educationstudent_id`),
  KEY `IDX_CEB9DFEC4FEA67CF` (`access_id`),
  CONSTRAINT `FK_CEB9DFEC12E4C1FD` FOREIGN KEY (`educationstudent_id`) REFERENCES `EducationStudent` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_CEB9DFEC4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `educationstudentwish_access`
--

DROP TABLE IF EXISTS `educationstudentwish_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `educationstudentwish_access` (
  `educationstudentwish_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  PRIMARY KEY (`educationstudentwish_id`,`access_id`),
  KEY `IDX_69153E36458E5516` (`educationstudentwish_id`),
  KEY `IDX_69153E364FEA67CF` (`access_id`),
  CONSTRAINT `FK_69153E36458E5516` FOREIGN KEY (`educationstudentwish_id`) REFERENCES `EducationStudentWish` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_69153E364FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `equipment_equipmentlist`
--

DROP TABLE IF EXISTS `equipment_equipmentlist`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `equipment_equipmentlist` (
  `equipment_id` int(11) NOT NULL,
  `equipmentlist_id` int(11) NOT NULL,
  PRIMARY KEY (`equipment_id`,`equipmentlist_id`),
  KEY `IDX_5836CCA1517FE9FE` (`equipment_id`),
  KEY `IDX_5836CCA163138E48` (`equipmentlist_id`),
  CONSTRAINT `FK_5836CCA1517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_5836CCA163138E48` FOREIGN KEY (`equipmentlist_id`) REFERENCES `EquipmentList` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_categories`
--

DROP TABLE IF EXISTS `event_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `event_categories` (
  `event_id` int(11) NOT NULL,
  `categories_id` int(11) NOT NULL,
  PRIMARY KEY (`event_id`,`categories_id`),
  KEY `IDX_621D9F4771F7E88B` (`event_id`),
  KEY `IDX_621D9F47A21214B7` (`categories_id`),
  CONSTRAINT `FK_621D9F4771F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_621D9F47A21214B7` FOREIGN KEY (`categories_id`) REFERENCES `Categories` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `event_files`
--

DROP TABLE IF EXISTS `event_files`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `event_files` (
  `event_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  PRIMARY KEY (`event_id`,`file_id`),
  KEY `IDX_472EF17571F7E88B` (`event_id`),
  KEY `IDX_472EF17593CB796C` (`file_id`),
  CONSTRAINT `FK_472EF17571F7E88B` FOREIGN KEY (`event_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_472EF17593CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `examen_educationcurriculum`
--

DROP TABLE IF EXISTS `examen_educationcurriculum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `examen_educationcurriculum` (
  `examen_id` int(11) NOT NULL,
  `educationcurriculum_id` int(11) NOT NULL,
  PRIMARY KEY (`examen_id`,`educationcurriculum_id`),
  KEY `IDX_FB66FD305C8659A` (`examen_id`),
  KEY `IDX_FB66FD30342462D` (`educationcurriculum_id`),
  CONSTRAINT `FK_FB66FD30342462D` FOREIGN KEY (`educationcurriculum_id`) REFERENCES `EducationCurriculum` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_FB66FD305C8659A` FOREIGN KEY (`examen_id`) REFERENCES `Booking` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `examenconvocation_equipment`
--

DROP TABLE IF EXISTS `examenconvocation_equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `examenconvocation_equipment` (
  `examenconvocation_id` int(11) NOT NULL,
  `equipment_id` int(11) NOT NULL,
  PRIMARY KEY (`examenconvocation_id`,`equipment_id`),
  KEY `IDX_94CBD864C66C9634` (`examenconvocation_id`),
  KEY `IDX_94CBD864517FE9FE` (`equipment_id`),
  CONSTRAINT `FK_94CBD864517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_94CBD864C66C9634` FOREIGN KEY (`examenconvocation_id`) REFERENCES `ExamenConvocation` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `file_person`
--

DROP TABLE IF EXISTS `file_person`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `file_person` (
  `file_id` int(11) NOT NULL,
  `person_id` int(11) NOT NULL,
  PRIMARY KEY (`file_id`,`person_id`),
  KEY `IDX_8CCBF7C993CB796C` (`file_id`),
  KEY `IDX_8CCBF7C9217BBB47` (`person_id`),
  CONSTRAINT `FK_8CCBF7C9217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_8CCBF7C993CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `intangible_educationcurriculum`
--

DROP TABLE IF EXISTS `intangible_educationcurriculum`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `intangible_educationcurriculum` (
  `intangible_id` int(11) NOT NULL,
  `educationcurriculum_id` int(11) NOT NULL,
  PRIMARY KEY (`intangible_id`,`educationcurriculum_id`),
  KEY `IDX_495BB8B8EB08B2B1` (`intangible_id`),
  KEY `IDX_495BB8B8342462D` (`educationcurriculum_id`),
  CONSTRAINT `FK_495BB8B8342462D` FOREIGN KEY (`educationcurriculum_id`) REFERENCES `EducationCurriculum` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_495BB8B8EB08B2B1` FOREIGN KEY (`intangible_id`) REFERENCES `Product` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `juries_members`
--

DROP TABLE IF EXISTS `juries_members`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `juries_members` (
  `jury_id` int(11) NOT NULL,
  `access_id` int(11) NOT NULL,
  PRIMARY KEY (`jury_id`,`access_id`),
  KEY `IDX_614888FBE560103C` (`jury_id`),
  KEY `IDX_614888FB4FEA67CF` (`access_id`),
  CONSTRAINT `FK_614888FB4FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_614888FBE560103C` FOREIGN KEY (`jury_id`) REFERENCES `Jury` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `messages_documents`
--

DROP TABLE IF EXISTS `messages_documents`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages_documents` (
  `message_id` int(11) NOT NULL,
  `document_id` int(11) NOT NULL,
  PRIMARY KEY (`message_id`,`document_id`),
  KEY `IDX_AC7AE21A537A1329` (`message_id`),
  KEY `IDX_AC7AE21AC33F7837` (`document_id`),
  CONSTRAINT `FK_AC7AE21A537A1329` FOREIGN KEY (`message_id`) REFERENCES `Message` (`id`),
  CONSTRAINT `FK_AC7AE21AC33F7837` FOREIGN KEY (`document_id`) REFERENCES `Document` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `messages_files`
--

DROP TABLE IF EXISTS `messages_files`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages_files` (
  `message_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  PRIMARY KEY (`message_id`,`file_id`),
  KEY `IDX_B3376222537A1329` (`message_id`),
  KEY `IDX_B337622293CB796C` (`file_id`),
  CONSTRAINT `FK_B3376222537A1329` FOREIGN KEY (`message_id`) REFERENCES `Message` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_B337622293CB796C` FOREIGN KEY (`file_id`) REFERENCES `File` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `messenger_messages`
--

DROP TABLE IF EXISTS `messenger_messages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `messenger_messages` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `headers` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue_name` varchar(190) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` datetime NOT NULL,
  `available_at` datetime NOT NULL,
  `delivered_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_75EA56E0FB7336F0` (`queue_name`),
  KEY `IDX_75EA56E0E3BD61CE` (`available_at`),
  KEY `IDX_75EA56E016BA31DB` (`delivered_at`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `organization_bankaccount`
--

DROP TABLE IF EXISTS `organization_bankaccount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_bankaccount` (
  `organization_id` int(11) NOT NULL,
  `bankAccount_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`bankAccount_id`),
  UNIQUE KEY `UNIQ_943C3A21EA47ABEE` (`bankAccount_id`),
  KEY `IDX_943C3A2132C8A3DE` (`organization_id`),
  CONSTRAINT `FK_943C3A2132C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_943C3A21EA47ABEE` FOREIGN KEY (`bankAccount_id`) REFERENCES `BankAccount` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `organization_contactpoint`
--

DROP TABLE IF EXISTS `organization_contactpoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_contactpoint` (
  `organization_id` int(11) NOT NULL,
  `contactPoint_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`contactPoint_id`),
  UNIQUE KEY `UNIQ_598F5D0D7396C08` (`contactPoint_id`),
  KEY `IDX_598F5D032C8A3DE` (`organization_id`),
  CONSTRAINT `FK_598F5D032C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_598F5D0D7396C08` FOREIGN KEY (`contactPoint_id`) REFERENCES `ContactPoint` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `organization_parent`
--

DROP TABLE IF EXISTS `organization_parent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_parent` (
  `organization_source` int(11) NOT NULL,
  `organization_target` int(11) NOT NULL,
  PRIMARY KEY (`organization_source`,`organization_target`),
  KEY `IDX_3800B0BA5A04AF86` (`organization_source`),
  KEY `IDX_3800B0BA43E1FF09` (`organization_target`),
  CONSTRAINT `FK_3800B0BA43E1FF09` FOREIGN KEY (`organization_target`) REFERENCES `Organization` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_3800B0BA5A04AF86` FOREIGN KEY (`organization_source`) REFERENCES `Organization` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `organization_type_of_practices`
--

DROP TABLE IF EXISTS `organization_type_of_practices`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_type_of_practices` (
  `organization_id` int(11) NOT NULL,
  `typeofpractice_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`typeofpractice_id`),
  KEY `IDX_7BC0C47532C8A3DE` (`organization_id`),
  KEY `IDX_7BC0C47559D4D160` (`typeofpractice_id`),
  CONSTRAINT `FK_7BC0C47532C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_7BC0C47559D4D160` FOREIGN KEY (`typeofpractice_id`) REFERENCES `TypeOfPractice` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `person_bankaccount`
--

DROP TABLE IF EXISTS `person_bankaccount`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `person_bankaccount` (
  `person_id` int(11) NOT NULL,
  `bankAccount_id` int(11) NOT NULL,
  PRIMARY KEY (`person_id`,`bankAccount_id`),
  KEY `IDX_C98BC1D2217BBB47` (`person_id`),
  KEY `IDX_C98BC1D2EA47ABEE` (`bankAccount_id`),
  CONSTRAINT `FK_C98BC1D2217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`),
  CONSTRAINT `FK_C98BC1D2EA47ABEE` FOREIGN KEY (`bankAccount_id`) REFERENCES `BankAccount` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `person_contactpoint`
--

DROP TABLE IF EXISTS `person_contactpoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `person_contactpoint` (
  `person_id` int(11) NOT NULL,
  `contactPoint_id` int(11) NOT NULL,
  PRIMARY KEY (`person_id`,`contactPoint_id`),
  KEY `IDX_2171E18D217BBB47` (`person_id`),
  KEY `IDX_2171E18DD7396C08` (`contactPoint_id`),
  CONSTRAINT `FK_2171E18D217BBB47` FOREIGN KEY (`person_id`) REFERENCES `Person` (`id`),
  CONSTRAINT `FK_2171E18DD7396C08` FOREIGN KEY (`contactPoint_id`) REFERENCES `ContactPoint` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `place_contactpoint`
--

DROP TABLE IF EXISTS `place_contactpoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `place_contactpoint` (
  `place_id` int(11) NOT NULL,
  `contactpoint_id` int(11) NOT NULL,
  PRIMARY KEY (`place_id`,`contactpoint_id`),
  KEY `IDX_13CA9379DA6A219` (`place_id`),
  KEY `IDX_13CA93792E4F0E5E` (`contactpoint_id`),
  CONSTRAINT `FK_13CA93792E4F0E5E` FOREIGN KEY (`contactpoint_id`) REFERENCES `ContactPoint` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_13CA9379DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `place_openinghoursspecification`
--

DROP TABLE IF EXISTS `place_openinghoursspecification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `place_openinghoursspecification` (
  `place_id` int(11) NOT NULL,
  `openinghoursspecification_id` int(11) NOT NULL,
  PRIMARY KEY (`place_id`,`openinghoursspecification_id`),
  UNIQUE KEY `UNIQ_9BEA3136CAA82629` (`openinghoursspecification_id`),
  KEY `IDX_9BEA3136DA6A219` (`place_id`),
  CONSTRAINT `FK_9BEA3136CAA82629` FOREIGN KEY (`openinghoursspecification_id`) REFERENCES `OpeningHoursSpecification` (`id`),
  CONSTRAINT `FK_9BEA3136DA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `revisions`
--

DROP TABLE IF EXISTS `revisions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `revisions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `timestamp` datetime NOT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8391895 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_contactpoint`
--

DROP TABLE IF EXISTS `room_contactpoint`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `room_contactpoint` (
  `room_id` int(11) NOT NULL,
  `contactpoint_id` int(11) NOT NULL,
  PRIMARY KEY (`room_id`,`contactpoint_id`),
  KEY `IDX_740D195354177093` (`room_id`),
  KEY `IDX_740D19532E4F0E5E` (`contactpoint_id`),
  CONSTRAINT `FK_740D19532E4F0E5E` FOREIGN KEY (`contactpoint_id`) REFERENCES `ContactPoint` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_740D195354177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_equipment`
--

DROP TABLE IF EXISTS `room_equipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `room_equipment` (
  `room_id` int(11) NOT NULL,
  `equipment_id` int(11) NOT NULL,
  PRIMARY KEY (`room_id`,`equipment_id`),
  UNIQUE KEY `UNIQ_4F9135EA517FE9FE` (`equipment_id`),
  KEY `IDX_4F9135EA54177093` (`room_id`),
  CONSTRAINT `FK_4F9135EA517FE9FE` FOREIGN KEY (`equipment_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_4F9135EA54177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `room_openinghoursspecification`
--

DROP TABLE IF EXISTS `room_openinghoursspecification`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `room_openinghoursspecification` (
  `room_id` int(11) NOT NULL,
  `openinghoursspecification_id` int(11) NOT NULL,
  PRIMARY KEY (`room_id`,`openinghoursspecification_id`),
  UNIQUE KEY `UNIQ_2392BD9ECAA82629` (`openinghoursspecification_id`),
  KEY `IDX_2392BD9E54177093` (`room_id`),
  CONSTRAINT `FK_2392BD9E54177093` FOREIGN KEY (`room_id`) REFERENCES `Room` (`id`),
  CONSTRAINT `FK_2392BD9ECAA82629` FOREIGN KEY (`openinghoursspecification_id`) REFERENCES `OpeningHoursSpecification` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_access`
--

DROP TABLE IF EXISTS `tag_access`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_access` (
  `access_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`access_id`,`tag_id`),
  KEY `IDX_EF2862784FEA67CF` (`access_id`),
  KEY `IDX_EF286278BAD26311` (`tag_id`),
  CONSTRAINT `FK_EF2862784FEA67CF` FOREIGN KEY (`access_id`) REFERENCES `Access` (`id`),
  CONSTRAINT `FK_EF286278BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_accessWish`
--

DROP TABLE IF EXISTS `tag_accessWish`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_accessWish` (
  `tag_id` int(11) NOT NULL,
  `accessWish_id` int(11) NOT NULL,
  PRIMARY KEY (`accessWish_id`,`tag_id`),
  KEY `IDX_FFD31D8986BD7DB5` (`accessWish_id`),
  KEY `IDX_FFD31D89BAD26311` (`tag_id`),
  CONSTRAINT `FK_FFD31D8986BD7DB5` FOREIGN KEY (`accessWish_id`) REFERENCES `AccessWish` (`id`),
  CONSTRAINT `FK_FFD31D89BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_activity`
--

DROP TABLE IF EXISTS `tag_activity`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_activity` (
  `activity_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`activity_id`,`tag_id`),
  KEY `IDX_9A45728181C06096` (`activity_id`),
  KEY `IDX_9A457281BAD26311` (`tag_id`),
  CONSTRAINT `FK_9A45728181C06096` FOREIGN KEY (`activity_id`) REFERENCES `Activity` (`id`),
  CONSTRAINT `FK_9A457281BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_billAccounting`
--

DROP TABLE IF EXISTS `tag_billAccounting`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_billAccounting` (
  `tag_id` int(11) NOT NULL,
  `billAccounting_id` int(11) NOT NULL,
  PRIMARY KEY (`billAccounting_id`,`tag_id`),
  KEY `IDX_1D609614AC989A31` (`billAccounting_id`),
  KEY `IDX_1D609614BAD26311` (`tag_id`),
  CONSTRAINT `FK_1D609614AC989A31` FOREIGN KEY (`billAccounting_id`) REFERENCES `BillAccounting` (`id`),
  CONSTRAINT `FK_1D609614BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_billPayment`
--

DROP TABLE IF EXISTS `tag_billPayment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_billPayment` (
  `tag_id` int(11) NOT NULL,
  `billPayment_id` int(11) NOT NULL,
  PRIMARY KEY (`billPayment_id`,`tag_id`),
  KEY `IDX_50EE6EE4EAEC0F9E` (`billPayment_id`),
  KEY `IDX_50EE6EE4BAD26311` (`tag_id`),
  CONSTRAINT `FK_50EE6EE4BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`),
  CONSTRAINT `FK_50EE6EE4EAEC0F9E` FOREIGN KEY (`billPayment_id`) REFERENCES `BillPayment` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_billingIntangible`
--

DROP TABLE IF EXISTS `tag_billingIntangible`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_billingIntangible` (
  `tag_id` int(11) NOT NULL,
  `billingIntangible_id` int(11) NOT NULL,
  PRIMARY KEY (`billingIntangible_id`,`tag_id`),
  KEY `IDX_B28ECEEAB77AD018` (`billingIntangible_id`),
  KEY `IDX_B28ECEEABAD26311` (`tag_id`),
  CONSTRAINT `FK_B28ECEEAB77AD018` FOREIGN KEY (`billingIntangible_id`) REFERENCES `BillingIntangible` (`id`),
  CONSTRAINT `FK_B28ECEEABAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_booking`
--

DROP TABLE IF EXISTS `tag_booking`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_booking` (
  `booking_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`booking_id`,`tag_id`),
  KEY `IDX_D23DC0743301C60` (`booking_id`),
  KEY `IDX_D23DC074BAD26311` (`tag_id`),
  CONSTRAINT `FK_D23DC0743301C60` FOREIGN KEY (`booking_id`) REFERENCES `Booking` (`id`),
  CONSTRAINT `FK_D23DC074BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_commission`
--

DROP TABLE IF EXISTS `tag_commission`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_commission` (
  `commission_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`commission_id`,`tag_id`),
  KEY `IDX_B97E8309202D1EB2` (`commission_id`),
  KEY `IDX_B97E8309BAD26311` (`tag_id`),
  CONSTRAINT `FK_B97E8309202D1EB2` FOREIGN KEY (`commission_id`) REFERENCES `Commission` (`id`),
  CONSTRAINT `FK_B97E8309BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_control`
--

DROP TABLE IF EXISTS `tag_control`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_control` (
  `control_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`control_id`,`tag_id`),
  KEY `IDX_DFEA01E132BEC70E` (`control_id`),
  KEY `IDX_DFEA01E1BAD26311` (`tag_id`),
  CONSTRAINT `FK_DFEA01E132BEC70E` FOREIGN KEY (`control_id`) REFERENCES `Control` (`id`),
  CONSTRAINT `FK_DFEA01E1BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_education`
--

DROP TABLE IF EXISTS `tag_education`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_education` (
  `education_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`education_id`,`tag_id`),
  KEY `IDX_CA3D64F52CA1BD71` (`education_id`),
  KEY `IDX_CA3D64F5BAD26311` (`tag_id`),
  CONSTRAINT `FK_CA3D64F52CA1BD71` FOREIGN KEY (`education_id`) REFERENCES `Education` (`id`),
  CONSTRAINT `FK_CA3D64F5BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_educationNotation`
--

DROP TABLE IF EXISTS `tag_educationNotation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_educationNotation` (
  `tag_id` int(11) NOT NULL,
  `educationNotation_id` int(11) NOT NULL,
  PRIMARY KEY (`educationNotation_id`,`tag_id`),
  KEY `IDX_282D48122EAB3F75` (`educationNotation_id`),
  KEY `IDX_282D4812BAD26311` (`tag_id`),
  CONSTRAINT `FK_282D48122EAB3F75` FOREIGN KEY (`educationNotation_id`) REFERENCES `EducationNotation` (`id`),
  CONSTRAINT `FK_282D4812BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_educationStudent`
--

DROP TABLE IF EXISTS `tag_educationStudent`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_educationStudent` (
  `tag_id` int(11) NOT NULL,
  `educationStudent_id` int(11) NOT NULL,
  PRIMARY KEY (`educationStudent_id`,`tag_id`),
  KEY `IDX_9DFCBCC85DB9C22D` (`educationStudent_id`),
  KEY `IDX_9DFCBCC8BAD26311` (`tag_id`),
  CONSTRAINT `FK_9DFCBCC85DB9C22D` FOREIGN KEY (`educationStudent_id`) REFERENCES `EducationStudent` (`id`),
  CONSTRAINT `FK_9DFCBCC8BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_equipmentLoan`
--

DROP TABLE IF EXISTS `tag_equipmentLoan`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_equipmentLoan` (
  `tag_id` int(11) NOT NULL,
  `equipmentLoan_id` int(11) NOT NULL,
  PRIMARY KEY (`equipmentLoan_id`,`tag_id`),
  KEY `IDX_F7A404A15F7327D0` (`equipmentLoan_id`),
  KEY `IDX_F7A404A1BAD26311` (`tag_id`),
  CONSTRAINT `FK_F7A404A15F7327D0` FOREIGN KEY (`equipmentLoan_id`) REFERENCES `EquipmentLoan` (`id`),
  CONSTRAINT `FK_F7A404A1BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_jury`
--

DROP TABLE IF EXISTS `tag_jury`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_jury` (
  `jury_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`jury_id`,`tag_id`),
  KEY `IDX_FD3A0F9AE560103C` (`jury_id`),
  KEY `IDX_FD3A0F9ABAD26311` (`tag_id`),
  CONSTRAINT `FK_FD3A0F9ABAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`),
  CONSTRAINT `FK_FD3A0F9AE560103C` FOREIGN KEY (`jury_id`) REFERENCES `Jury` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_message`
--

DROP TABLE IF EXISTS `tag_message`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_message` (
  `message_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`message_id`,`tag_id`),
  KEY `IDX_848C1DD5537A1329` (`message_id`),
  KEY `IDX_848C1DD5BAD26311` (`tag_id`),
  CONSTRAINT `FK_848C1DD5537A1329` FOREIGN KEY (`message_id`) REFERENCES `Message` (`id`),
  CONSTRAINT `FK_848C1DD5BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_organization`
--

DROP TABLE IF EXISTS `tag_organization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_organization` (
  `organization_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`organization_id`,`tag_id`),
  KEY `IDX_61F8487E32C8A3DE` (`organization_id`),
  KEY `IDX_61F8487EBAD26311` (`tag_id`),
  CONSTRAINT `FK_61F8487E32C8A3DE` FOREIGN KEY (`organization_id`) REFERENCES `Organization` (`id`),
  CONSTRAINT `FK_61F8487EBAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_place`
--

DROP TABLE IF EXISTS `tag_place`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_place` (
  `place_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`place_id`,`tag_id`),
  KEY `IDX_56F14ACBDA6A219` (`place_id`),
  KEY `IDX_56F14ACBBAD26311` (`tag_id`),
  CONSTRAINT `FK_56F14ACBBAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`),
  CONSTRAINT `FK_56F14ACBDA6A219` FOREIGN KEY (`place_id`) REFERENCES `Place` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_product`
--

DROP TABLE IF EXISTS `tag_product`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_product` (
  `product_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`product_id`,`tag_id`),
  KEY `IDX_E17B29074584665A` (`product_id`),
  KEY `IDX_E17B2907BAD26311` (`tag_id`),
  CONSTRAINT `FK_E17B29074584665A` FOREIGN KEY (`product_id`) REFERENCES `Product` (`id`),
  CONSTRAINT `FK_E17B2907BAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `tag_repair`
--

DROP TABLE IF EXISTS `tag_repair`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_repair` (
  `repair_id` int(11) NOT NULL,
  `tag_id` int(11) NOT NULL,
  PRIMARY KEY (`repair_id`,`tag_id`),
  KEY `IDX_67A57D0D43833CFF` (`repair_id`),
  KEY `IDX_67A57D0DBAD26311` (`tag_id`),
  CONSTRAINT `FK_67A57D0D43833CFF` FOREIGN KEY (`repair_id`) REFERENCES `Repair` (`id`),
  CONSTRAINT `FK_67A57D0DBAD26311` FOREIGN KEY (`tag_id`) REFERENCES `Tagg` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `temp_education_table`
--

DROP TABLE IF EXISTS `temp_education_table`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `temp_education_table` (
  `id` int(11) NOT NULL,
  `legacyId` int(11) NOT NULL,
  PRIMARY KEY (`legacyId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Temporary view structure for view `view_audit`
--

DROP TABLE IF EXISTS `view_audit`;
/*!50001 DROP VIEW IF EXISTS `view_audit`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_audit` AS SELECT 
 1 AS `identifier`,
 1 AS `rev`,
 1 AS `id`,
 1 AS `createDate`,
 1 AS `updateDate`,
 1 AS `createdBy_id`,
 1 AS `updatedBy_id`,
 1 AS `revType`,
 1 AS `organizationId`,
 1 AS `tableName`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_federation_structures`
--

DROP TABLE IF EXISTS `view_federation_structures`;
/*!50001 DROP VIEW IF EXISTS `view_federation_structures`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_federation_structures` AS SELECT 
 1 AS `id`,
 1 AS `name`,
 1 AS `logoId`,
 1 AS `description`,
 1 AS `imageId`,
 1 AS `type`,
 1 AS `website`,
 1 AS `addresses`,
 1 AS `phone`,
 1 AS `mobilePhone`,
 1 AS `email`,
 1 AS `facebook`,
 1 AS `twitter`,
 1 AS `instagram`,
 1 AS `youtube`,
 1 AS `practices`,
 1 AS `articles`,
 1 AS `parentId`,
 1 AS `parentName`,
 1 AS `parents`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_portail_donors`
--

DROP TABLE IF EXISTS `view_portail_donors`;
/*!50001 DROP VIEW IF EXISTS `view_portail_donors`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_portail_donors` AS SELECT 
 1 AS `id`,
 1 AS `organizationId`,
 1 AS `name`,
 1 AS `email`,
 1 AS `telphone`,
 1 AS `amount`,
 1 AS `wording`,
 1 AS `logoId`,
 1 AS `displayedOn`,
 1 AS `website`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_portail_events`
--

DROP TABLE IF EXISTS `view_portail_events`;
/*!50001 DROP VIEW IF EXISTS `view_portail_events`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_portail_events` AS SELECT 
 1 AS `id`,
 1 AS `subDomain`,
 1 AS `parentName`,
 1 AS `parentSubDomain`,
 1 AS `organizationId`,
 1 AS `name`,
 1 AS `description`,
 1 AS `url`,
 1 AS `rule`,
 1 AS `datetimeStart`,
 1 AS `datetimeEnd`,
 1 AS `dates`,
 1 AS `placeName`,
 1 AS `placeDescription`,
 1 AS `placeFloorSize`,
 1 AS `placeCapacity`,
 1 AS `city`,
 1 AS `postalCode`,
 1 AS `streetAddress`,
 1 AS `longitude`,
 1 AS `latitude`,
 1 AS `roomName`,
 1 AS `roomDescription`,
 1 AS `roomLocalisation`,
 1 AS `roomCapacity`,
 1 AS `roomFloorSize`,
 1 AS `deepLink`,
 1 AS `zupId`,
 1 AS `image`,
 1 AS `priceMini`,
 1 AS `meetingSchedule`,
 1 AS `categories`,
 1 AS `api`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_portail_members`
--

DROP TABLE IF EXISTS `view_portail_members`;
/*!50001 DROP VIEW IF EXISTS `view_portail_members`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_portail_members` AS SELECT 
 1 AS `id`,
 1 AS `organizationId`,
 1 AS `personId`,
 1 AS `gender`,
 1 AS `givenName`,
 1 AS `name`,
 1 AS `startDate`,
 1 AS `endDate`,
 1 AS `mission`,
 1 AS `image`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_portail_members_by_speciality`
--

DROP TABLE IF EXISTS `view_portail_members_by_speciality`;
/*!50001 DROP VIEW IF EXISTS `view_portail_members_by_speciality`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_portail_members_by_speciality` AS SELECT 
 1 AS `id`,
 1 AS `organizationId`,
 1 AS `personId`,
 1 AS `gender`,
 1 AS `givenName`,
 1 AS `name`,
 1 AS `startDate`,
 1 AS `endDate`,
 1 AS `instrumentGroup`,
 1 AS `instrument`,
 1 AS `image`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_portail_organizations`
--

DROP TABLE IF EXISTS `view_portail_organizations`;
/*!50001 DROP VIEW IF EXISTS `view_portail_organizations`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_portail_organizations` AS SELECT 
 1 AS `id`,
 1 AS `subDomain`,
 1 AS `name`,
 1 AS `parentId`,
 1 AS `parentName`,
 1 AS `parentSubDomain`,
 1 AS `logo`,
 1 AS `slug`,
 1 AS `description`,
 1 AS `portailVisibility`,
 1 AS `website`,
 1 AS `otherWebsite`,
 1 AS `principalType`,
 1 AS `addressCity`,
 1 AS `latitude`,
 1 AS `longitude`,
 1 AS `postalCode`,
 1 AS `streetAddress`,
 1 AS `country`,
 1 AS `categories`,
 1 AS `publicationDirectors`*/;
SET character_set_client = @saved_cs_client;

--
-- Temporary view structure for view `view_public_events`
--

DROP TABLE IF EXISTS `view_public_events`;
/*!50001 DROP VIEW IF EXISTS `view_public_events`*/;
SET @saved_cs_client     = @@character_set_client;
/*!50503 SET character_set_client = utf8mb4 */;
/*!50001 CREATE VIEW `view_public_events` AS SELECT 
 1 AS `uuid`,
 1 AS `organizationId`,
 1 AS `name`,
 1 AS `description`,
 1 AS `url`,
 1 AS `datetimeStart`,
 1 AS `datetimeEnd`,
 1 AS `placeName`,
 1 AS `placeDescription`,
 1 AS `placeFloorSize`,
 1 AS `placeCapacity`,
 1 AS `city`,
 1 AS `postalCode`,
 1 AS `streetAddress`,
 1 AS `longitude`,
 1 AS `latitude`,
 1 AS `roomName`,
 1 AS `roomDescription`,
 1 AS `roomLocalisation`,
 1 AS `roomCapacity`,
 1 AS `roomFloorSize`,
 1 AS `imageUrl`,
 1 AS `thumbnailUrl`,
 1 AS `categories`,
 1 AS `origin`,
 1 AS `entityId`*/;
SET character_set_client = @saved_cs_client;

--
-- Table structure for table `zzz_LoginLog`
--

DROP TABLE IF EXISTS `zzz_LoginLog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `zzz_LoginLog` (
  `id` int(11) NOT NULL DEFAULT 0,
  `login` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `date` datetime DEFAULT NULL,
  `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `navigateur` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `organizationId` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Final view structure for view `view_audit`
--

/*!50001 DROP VIEW IF EXISTS `view_audit`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_audit` AS (select `init_var_session`() AS `identifier`,NULL AS `rev`,`a`.`id` AS `id`,NULL AS `createDate`,NULL AS `updateDate`,NULL AS `createdBy_id`,NULL AS `updatedBy_id`,NULL AS `revType`,NULL AS `organizationId`,'INIT' AS `tableName` from `Audit_Organization` `a` limit 1) union (select `func_inc_var_session`() AS `identifier`,`person`.`rev` AS `rev`,`person`.`id` AS `id`,`person`.`createDate` AS `createDate`,`person`.`updateDate` AS `updateDate`,`person`.`createdBy` AS `createdBy_id`,`person`.`updatedBy` AS `updatedBy_id`,`person`.`revtype` AS `revType`,if(`Access`.`organization_id` is not null,`Access`.`organization_id`,`accessPerson2`.`organization_id`) AS `organizationId`,'person' AS `tableName` from ((`Audit_Person` `person` left join `Access` on(`Access`.`id` = `person`.`createdBy`)) left join `Access` `accessPerson2` on(`accessPerson2`.`id` = `person`.`updatedBy`)) where `Access`.`organization_id` is not null or `accessPerson2`.`organization_id` is not null) union (select `func_inc_var_session`() AS `identifier`,`donor`.`rev` AS `rev`,`donor`.`id` AS `id`,`donor`.`createDate` AS `createDate`,`donor`.`updateDate` AS `updateDate`,`donor`.`createdBy` AS `createdBy_id`,`donor`.`updatedBy` AS `updatedBy_id`,`donor`.`revtype` AS `revType`,`Access`.`organization_id` AS `organization_id`,'donor' AS `tableName` from (`Audit_Donor` `donor` join `Access` on(`donor`.`access_id` = `Access`.`id`))) order by `updateDate` desc,`createDate` desc */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_federation_structures`
--

/*!50001 DROP VIEW IF EXISTS `view_federation_structures`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8mb4 */;
/*!50001 SET character_set_results     = utf8mb4 */;
/*!50001 SET collation_connection      = utf8mb4_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_federation_structures` AS select `o`.`id` AS `id`,`o`.`name` AS `name`,`o`.`logo_id` AS `logoId`,`o`.`description` AS `description`,`o`.`image_id` AS `imageId`,`o`.`principalType` AS `type`,`p`.`otherWebsite` AS `website`,concat('[',group_concat(column_json(column_create('type',`oa`.`type`,'latitude',`a`.`latitude`,'longitude',`a`.`longitude`,'streetAddress',trim(both '\n' from concat_ws('\n',`a`.`streetAddress`,`a`.`streetAddressSecond`,`a`.`streetAddressThird`)),'postalCode',`a`.`postalCode`,'addressCity',`a`.`addressCity`,'country',`c`.`name`)) separator ','),']') AS `addresses`,`cp`.`telphone` AS `phone`,`cp`.`mobilPhone` AS `mobilePhone`,`cp`.`email` AS `email`,`o`.`facebook` AS `facebook`,`o`.`twitter` AS `twitter`,`o`.`instagram` AS `instagram`,`o`.`youtube` AS `youtube`,(select concat(group_concat(distinct concat(`tp`.`name`) separator ',')) from (`organization_type_of_practices` `otp` left join `TypeOfPractice` `tp` on(`tp`.`id` = `otp`.`typeofpractice_id`)) where `otp`.`organization_id` = `o`.`id`) AS `practices`,`oar`.`articles` AS `articles`,`n1`.`parent_id` AS `parentId`,`net1`.`name` AS `parentName`,concat_ws(',',`n1`.`parent_id`,`n2`.`parent_id`,`n3`.`parent_id`,`n4`.`parent_id`,`n5`.`parent_id`) AS `parents` from (((((((((((((`Organization` `o` join `Parameters` `p` on(`o`.`parameters_id` = `p`.`id`)) left join `OrganizationAddressPostal` `oa` on(`oa`.`organization_id` = `o`.`id`)) left join `AddressPostal` `a` on(`oa`.`addressPostal_id` = `a`.`id`)) left join `Country` `c` on(`c`.`id` = `a`.`addressCountry_id`)) left join `organization_contactpoint` `ocp` on(`ocp`.`organization_id` = `o`.`id`)) join (select `ContactPoint`.`id` AS `id`,`ContactPoint`.`contactType` AS `contactType`,`ContactPoint`.`email` AS `email`,`ContactPoint`.`emailInvalid` AS `emailInvalid`,`ContactPoint`.`faxNumber` AS `faxNumber`,`ContactPoint`.`faxNumberInvalid` AS `faxNumberInvalid`,`ContactPoint`.`telphone` AS `telphone`,`ContactPoint`.`telphoneInvalid` AS `telphoneInvalid`,`ContactPoint`.`mobilPhone` AS `mobilPhone`,`ContactPoint`.`mobilPhoneInvalid` AS `mobilPhoneInvalid`,`ContactPoint`.`createDate` AS `createDate`,`ContactPoint`.`updateDate` AS `updateDate`,`ContactPoint`.`legacyId` AS `legacyId`,`ContactPoint`.`createdBy` AS `createdBy`,`ContactPoint`.`updatedBy` AS `updatedBy`,`ContactPoint`.`draft` AS `draft`,`ContactPoint`.`invalidReason` AS `invalidReason`,`ContactPoint`.`invalidStatus` AS `invalidStatus`,`ContactPoint`.`invalidEmailBody` AS `invalidEmailBody`,`ContactPoint`.`invalidCat` AS `invalidCat` from `ContactPoint` where `ContactPoint`.`contactType` = 'PRINCIPAL') `cp` on(`cp`.`id` = `ocp`.`contactPoint_id`)) left join (select `oar_`.`organization_id` AS `organization_id`,concat('[',group_concat(column_json(column_create('id',`oar_`.`id`,'title',`oar_`.`title`,'date',date_format(`oar_`.`date`,'%Y-%m-%dT%TZ'),'link',`oar_`.`link`)) separator ','),']') AS `articles` from (select `OrganizationArticle`.`id` AS `id`,`OrganizationArticle`.`organization_id` AS `organization_id`,`OrganizationArticle`.`title` AS `title`,`OrganizationArticle`.`link` AS `link`,`OrganizationArticle`.`createDate` AS `createDate`,`OrganizationArticle`.`updateDate` AS `updateDate`,`OrganizationArticle`.`legacyId` AS `legacyId`,`OrganizationArticle`.`createdBy` AS `createdBy`,`OrganizationArticle`.`updatedBy` AS `updatedBy`,`OrganizationArticle`.`draft` AS `draft`,`OrganizationArticle`.`date` AS `date` from `OrganizationArticle` where `OrganizationArticle`.`link` is not null and `OrganizationArticle`.`link` <> '' order by `OrganizationArticle`.`date` desc) `oar_` group by `oar_`.`organization_id`) `oar` on(`oar`.`organization_id` = `o`.`id`)) join (select distinct `NetworkOrganization`.`organization_id` AS `organization_id`,`NetworkOrganization`.`parent_id` AS `parent_id` from `NetworkOrganization` where `NetworkOrganization`.`parent_id` not in (32366,13) and (`NetworkOrganization`.`endDate` is null or `NetworkOrganization`.`endDate` = '0000-00-00')) `n1` on(`n1`.`organization_id` = `o`.`id`)) join `Organization` `net1` on(`net1`.`id` = `n1`.`parent_id`)) left join (select distinct `NetworkOrganization`.`organization_id` AS `organization_id`,`NetworkOrganization`.`parent_id` AS `parent_id` from `NetworkOrganization` where `NetworkOrganization`.`parent_id` not in (32366,13) and (`NetworkOrganization`.`endDate` is null or `NetworkOrganization`.`endDate` = '0000-00-00')) `n2` on(`n2`.`organization_id` = `n1`.`parent_id`)) left join (select distinct `NetworkOrganization`.`organization_id` AS `organization_id`,`NetworkOrganization`.`parent_id` AS `parent_id` from `NetworkOrganization` where `NetworkOrganization`.`parent_id` not in (32366,13) and (`NetworkOrganization`.`endDate` is null or `NetworkOrganization`.`endDate` = '0000-00-00')) `n3` on(`n3`.`organization_id` = `n2`.`parent_id`)) left join (select distinct `NetworkOrganization`.`organization_id` AS `organization_id`,`NetworkOrganization`.`parent_id` AS `parent_id` from `NetworkOrganization` where `NetworkOrganization`.`parent_id` not in (32366,13) and (`NetworkOrganization`.`endDate` is null or `NetworkOrganization`.`endDate` = '0000-00-00')) `n4` on(`n4`.`organization_id` = `n3`.`parent_id`)) left join (select distinct `NetworkOrganization`.`organization_id` AS `organization_id`,`NetworkOrganization`.`parent_id` AS `parent_id` from `NetworkOrganization` where `NetworkOrganization`.`parent_id` not in (32366,13) and (`NetworkOrganization`.`endDate` is null or `NetworkOrganization`.`endDate` = '0000-00-00')) `n5` on(`n5`.`organization_id` = `n4`.`parent_id`)) group by `o`.`id` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_portail_donors`
--

/*!50001 DROP VIEW IF EXISTS `view_portail_donors`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_portail_donors` AS select `d`.`id` AS `id`,`o`.`id` AS `organizationId`,`p`.`name` AS `name`,if(`d`.`emailVisibility`,`p`.`email`,NULL) AS `email`,`c`.`telphone` AS `telphone`,`d`.`amount` AS `amount`,`d`.`wording` AS `wording`,if(`d`.`logoVisibility`,`fi`.`id`,NULL) AS `logoId`,`d`.`displayedOn` AS `displayedOn`,`p`.`website` AS `website` from ((((((`Donor` `d` join `Access` `a` on(`d`.`access_id` = `a`.`id`)) join `Organization` `o` on(`o`.`id` = `a`.`organization_id`)) join `Person` `p` on(`p`.`id` = `a`.`person_id` and `p`.`isPhysical` = 1)) left join `File` `fi` on(`fi`.`id` = `p`.`image_id`)) left join `person_contactpoint` `pcp` on(`pcp`.`person_id` = `p`.`id`)) left join `ContactPoint` `c` on(`c`.`id` = `pcp`.`contactPoint_id` and `c`.`contactType` = 'PRINCIPAL')) where `d`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and (`d`.`endDate` >= date_format(current_timestamp(),'%Y-%m-%d') or `d`.`endDate` is null or `d`.`endDate` = '') and `d`.`donorVisibility` = 1 union select `d2`.`id` AS `id`,`o2`.`id` AS `organizationId`,`p2`.`name` AS `name`,if(`d2`.`emailVisibility`,`p2`.`email`,NULL) AS `email`,`c2`.`telphone` AS `telphone`,`d2`.`amount` AS `amount`,`d2`.`wording` AS `wording`,if(`d2`.`logoVisibility`,`fi2`.`id`,NULL) AS `logoId`,`d2`.`displayedOn` AS `displayedOn`,`p2`.`website` AS `website` from ((((((`Donor` `d2` join `Access` `a2` on(`d2`.`access_id` = `a2`.`id`)) join `Organization` `o2` on(`o2`.`id` = `a2`.`organization_id`)) join `Person` `p2` on(`p2`.`id` = `a2`.`person_id` and `p2`.`isPhysical` = 0)) left join `File` `fi2` on(`fi2`.`id` = `p2`.`image_id`)) left join `person_contactpoint` `pcp2` on(`pcp2`.`person_id` = `p2`.`id`)) left join `ContactPoint` `c2` on(`c2`.`id` = `pcp2`.`contactPoint_id` and `c2`.`contactType` = 'PRINCIPAL')) where `d2`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and (`d2`.`endDate` >= date_format(current_timestamp(),'%Y-%m-%d') or `d2`.`endDate` is null or `d2`.`endDate` = '') group by `d2`.`id` order by `id` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_portail_events`
--

/*!50001 DROP VIEW IF EXISTS `view_portail_events`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_portail_events` AS select `auto_increment_value`(`b`.`id`) AS `id`,`s`.`subdomain` AS `subDomain`,`op`.`name` AS `parentName`,`ps`.`subdomain` AS `parentSubDomain`,`b`.`organization_id` AS `organizationId`,`b`.`name` AS `name`,`b`.`description` AS `description`,`b`.`url` AS `url`,`b`.`rule` AS `rule`,`b`.`datetimeStart` AS `datetimeStart`,`b`.`datetimeEnd` AS `datetimeEnd`,NULL AS `dates`,`p`.`name` AS `placeName`,`p`.`description` AS `placeDescription`,`p`.`floorSize` AS `placeFloorSize`,`p`.`capacity` AS `placeCapacity`,`ap`.`addressCity` AS `city`,`ap`.`postalCode` AS `postalCode`,trim(both ' ' from concat(if(`ap`.`streetAddress` is null,'',`ap`.`streetAddress`),' ',if(`ap`.`streetAddressSecond` is null,'',`ap`.`streetAddressSecond`),' ',if(`ap`.`streetAddressThird` is null,'',`ap`.`streetAddressThird`))) AS `streetAddress`,`ap`.`longitude` AS `longitude`,`ap`.`latitude` AS `latitude`,`r`.`name` AS `roomName`,`r`.`description` AS `roomDescription`,`r`.`localisation` AS `roomLocalisation`,`r`.`capacity` AS `roomCapacity`,`r`.`floorSize` AS `roomFloorSize`,NULL AS `deepLink`,NULL AS `zupId`,`b`.`image_id` AS `image`,NULL AS `priceMini`,NULL AS `meetingSchedule`,(select concat('[',group_concat(concat('"',`f`.`code`,'"') separator ','),']') from ((`event_categories` `ec` left join `Categories` `cs` on(`cs`.`id` = `ec`.`categories_id`)) left join `Familly` `f` on(`f`.`id` = `cs`.`familly_id`)) where `ec`.`event_id` = `b`.`id`) AS `categories`,1 AS `api` from ((((((((((`Booking` `b` join `Organization` `o` on(`o`.`id` = `b`.`organization_id`)) left join (select `Subdomain`.`id` AS `id`,`Subdomain`.`organization_id` AS `organization_id`,`Subdomain`.`subdomain` AS `subdomain`,`Subdomain`.`active` AS `active` from `Subdomain` where `Subdomain`.`active` = 1) `s` on(`o`.`id` = `s`.`organization_id`)) join `Parameters` `par` on(`par`.`id` = `o`.`parameters_id`)) join `NetworkOrganization` `N` on(`o`.`id` = `N`.`organization_id` and (`N`.`endDate` is null or `N`.`endDate` = '0000-00-00'))) join `Organization` `op` on(`op`.`id` = `N`.`parent_id`)) join `Parameters` `pp` on(`pp`.`id` = `op`.`parameters_id`)) left join (select `Subdomain`.`id` AS `id`,`Subdomain`.`organization_id` AS `organization_id`,`Subdomain`.`subdomain` AS `subdomain`,`Subdomain`.`active` AS `active` from `Subdomain` where `Subdomain`.`active` = 1) `ps` on(`op`.`id` = `ps`.`organization_id`)) left join `Place` `p` on(`p`.`id` = `b`.`place_id`)) left join `AddressPostal` `ap` on(`ap`.`id` = `p`.`addressPostal_id`)) left join `Room` `r` on(`r`.`id` = `b`.`room_id`)) where `b`.`discr` = 'event' and `b`.`datetimeEnd` >= current_timestamp() and `b`.`visibility` = 'PUBLIC_VISIBILITY' and `b`.`isCanceled` = 0 union select `auto_increment_value`(NULL) AS `id`,NULL AS `subDomain`,NULL AS `parentName`,NULL AS `parentSubDomain`,NULL AS `organizationId`,`aw`.`name` AS `name`,`aw`.`description` AS `description`,NULL AS `url`,NULL AS `rule`,`aw`.`datetimeStart` AS `datetimeStart`,`aw`.`datetimeEnd` AS `datetimeEnd`,NULL AS `dates`,`aw`.`place` AS `placeName`,NULL AS `placeDescription`,NULL AS `placeFloorSize`,NULL AS `placeCapacity`,`aw`.`city` AS `city`,`aw`.`postalCode` AS `postalCode`,`aw`.`streetAddress` AS `streetAddress`,`aw`.`longitude` AS `longitude`,`aw`.`latitude` AS `latitude`,NULL AS `roomName`,NULL AS `roomDescription`,NULL AS `roomLocalisation`,NULL AS `roomCapacity`,NULL AS `roomFloorSize`,`aw`.`deepLink` AS `deepLink`,`aw`.`id` AS `zupId`,`aw`.`largeimage` AS `image`,`aw`.`price_mini` AS `priceMini`,`aw`.`meeting_schedule` AS `meetingSchedule`,`aw`.`categories` AS `categories`,0 AS `api` from `AwinProduct` `aw` where `aw`.`datetimeEnd` >= current_timestamp() and `aw`.`datetimeStart` is not null */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_portail_members`
--

/*!50001 DROP VIEW IF EXISTS `view_portail_members`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_portail_members` AS select `ofu`.`id` AS `id`,`o`.`id` AS `organizationId`,`p`.`id` AS `personId`,`p`.`gender` AS `gender`,`p`.`givenName` AS `givenName`,`p`.`name` AS `name`,`ofu`.`startDate` AS `startDate`,`ofu`.`endDate` AS `endDate`,`f`.`mission` AS `mission`,`fi`.`id` AS `image` from (((((`OrganizationFunction` `ofu` join `Access` `a` on(`ofu`.`access_id` = `a`.`id`)) join `FunctionType` `f` on(`f`.`id` = `ofu`.`functionType_id`)) join `Organization` `o` on(`o`.`id` = `a`.`organization_id`)) join `Person` `p` on(`p`.`id` = `a`.`person_id`)) left join `File` `fi` on(`fi`.`id` = `p`.`image_id`)) where `ofu`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and (`ofu`.`endDate` is null or `ofu`.`endDate` = date_format(current_timestamp(),'%Y-%m-%d')) order by `o`.`id` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_portail_members_by_speciality`
--

/*!50001 DROP VIEW IF EXISTS `view_portail_members_by_speciality`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_portail_members_by_speciality` AS select distinct `p`.`id` AS `id`,`o`.`id` AS `organizationId`,`p`.`id` AS `personId`,`p`.`gender` AS `gender`,`p`.`givenName` AS `givenName`,`p`.`name` AS `name`,`pa`.`startDate` AS `startDate`,`pa`.`endDate` AS `endDate`,`el`.`groupement` AS `instrumentGroup`,`el`.`detail` AS `instrument`,`fi`.`id` AS `image` from (((((((`PersonActivity` `pa` join `Access` `a` on(`pa`.`access_id` = `a`.`id`)) join `OrganizationFunction` `orgaF` on(`orgaF`.`access_id` = `a`.`id`)) join `FunctionType` `ft` on(`ft`.`id` = `orgaF`.`functionType_id`)) join `EquipmentList` `el` on(`el`.`id` = `pa`.`speciality_id`)) join `Organization` `o` on(`o`.`id` = `a`.`organization_id`)) join `Person` `p` on(`p`.`id` = `a`.`person_id`)) left join `File` `fi` on(`fi`.`id` = `p`.`image_id`)) where `pa`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and `pa`.`mainActivity` = 1 and (`pa`.`endDate` is null or `pa`.`endDate` = date_format(current_timestamp(),'%Y-%m-%d')) and `orgaF`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and (`orgaF`.`endDate` is null or `orgaF`.`endDate` = date_format(current_timestamp(),'%Y-%m-%d')) and `ft`.`mission` = 'ADHERENT' union select distinct `p`.`id` AS `id`,`o`.`id` AS `organizationId`,`p`.`id` AS `personId`,`p`.`gender` AS `gender`,`p`.`givenName` AS `givenName`,`p`.`name` AS `name`,`orgaF`.`startDate` AS `startDate`,`orgaF`.`endDate` AS `endDate`,'CONDUCTOR' AS `instrumentGroup`,'CONDUCTOR' AS `instrument`,`fi`.`id` AS `image` from (((((`OrganizationFunction` `orgaF` join `Access` `a` on(`orgaF`.`access_id` = `a`.`id`)) join `FunctionType` `ft` on(`ft`.`id` = `orgaF`.`functionType_id`)) join `Organization` `o` on(`o`.`id` = `a`.`organization_id`)) join `Person` `p` on(`p`.`id` = `a`.`person_id`)) left join `File` `fi` on(`fi`.`id` = `p`.`image_id`)) where `orgaF`.`startDate` <= date_format(current_timestamp(),'%Y-%m-%d') and (`orgaF`.`endDate` is null or `orgaF`.`endDate` = date_format(current_timestamp(),'%Y-%m-%d')) and `ft`.`mission` = 'MUSIC_DIRECTOR_AND_HEAD' */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_portail_organizations`
--

/*!50001 DROP VIEW IF EXISTS `view_portail_organizations`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8 */;
/*!50001 SET character_set_results     = utf8 */;
/*!50001 SET collation_connection      = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_portail_organizations` AS select `o`.`id` AS `id`,`s`.`subdomain` AS `subDomain`,`o`.`name` AS `name`,`op`.`id` AS `parentId`,`op`.`name` AS `parentName`,`ps`.`subdomain` AS `parentSubDomain`,`o`.`logo_id` AS `logo`,concat(`o`.`name`,'-',`o`.`id`) AS `slug`,`o`.`description` AS `description`,`o`.`portailVisibility` AS `portailVisibility`,`p`.`website` AS `website`,`p`.`otherWebsite` AS `otherWebsite`,`o`.`principalType` AS `principalType`,`ap`.`addressCity` AS `addressCity`,`ap`.`latitude` AS `latitude`,`ap`.`longitude` AS `longitude`,`ap`.`postalCode` AS `postalCode`,trim(both ' ' from concat(`ap`.`streetAddress`,' ',`ap`.`streetAddressSecond`,' ',`ap`.`streetAddressThird`)) AS `streetAddress`,`c`.`name` AS `country`,(select concat('[',group_concat(distinct concat('"',`f`.`code`,'"') separator ','),']') from (((`Activity` `a` left join `activity_categories` `ac` on(`ac`.`activity_id` = `a`.`id`)) left join `Categories` `cs` on(`cs`.`id` = `ac`.`categories_id`)) left join `Familly` `f` on(`f`.`id` = `cs`.`familly_id`)) where `a`.`organization_id` = `o`.`id`) AS `categories`,`pubdir`.`publicationDirectors` AS `publicationDirectors` from ((((((((((`Organization` `o` join `Parameters` `p` on(`p`.`id` = `o`.`parameters_id`)) left join (select `Subdomain`.`id` AS `id`,`Subdomain`.`organization_id` AS `organization_id`,`Subdomain`.`subdomain` AS `subdomain`,`Subdomain`.`active` AS `active` from `Subdomain` where `Subdomain`.`active` = 1) `s` on(`o`.`id` = `s`.`organization_id`)) join `NetworkOrganization` `N` on(`o`.`id` = `N`.`organization_id` and (`N`.`endDate` is null or `N`.`endDate` = '0000-00-00'))) join `Organization` `op` on(`op`.`id` = `N`.`parent_id`)) join `Parameters` `pp` on(`pp`.`id` = `op`.`parameters_id`)) left join (select `Subdomain`.`id` AS `id`,`Subdomain`.`organization_id` AS `organization_id`,`Subdomain`.`subdomain` AS `subdomain`,`Subdomain`.`active` AS `active` from `Subdomain` where `Subdomain`.`active` = 1) `ps` on(`op`.`id` = `ps`.`organization_id`)) left join `OrganizationAddressPostal` `oap` on(`oap`.`organization_id` = `o`.`id` and `oap`.`type` = 'ADDRESS_HEAD_OFFICE')) left join `AddressPostal` `ap` on(`ap`.`id` = `oap`.`addressPostal_id`)) left join `Country` `c` on(`c`.`id` = `ap`.`addressCountry_id`)) left join (select `p`.`id` AS `p_id`,group_concat(concat(`per`.`name`,' ',`per`.`givenName`) separator ', ') AS `publicationDirectors` from ((`Parameters` `p` join `Access` `a` on(`a`.`publicationDirector_id` = `p`.`id`)) join `Person` `per` on(`a`.`person_id` = `per`.`id`)) group by `p`.`id`) `pubdir` on(`p`.`id` = `pubdir`.`p_id`)) order by `o`.`id` */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;

--
-- Final view structure for view `view_public_events`
--

/*!50001 DROP VIEW IF EXISTS `view_public_events`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8mb4 */;
/*!50001 SET character_set_results     = utf8mb4 */;
/*!50001 SET collation_connection      = utf8mb4_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`%` SQL SECURITY DEFINER */
/*!50001 VIEW `view_public_events` AS select `b`.`uuid` AS `uuid`,`b`.`organization_id` AS `organizationId`,`b`.`name` AS `name`,`b`.`description` AS `description`,`b`.`url` AS `url`,`b`.`datetimeStart` AS `datetimeStart`,`b`.`datetimeEnd` AS `datetimeEnd`,`p`.`name` AS `placeName`,`p`.`description` AS `placeDescription`,`p`.`floorSize` AS `placeFloorSize`,`p`.`capacity` AS `placeCapacity`,`ap`.`addressCity` AS `city`,`ap`.`postalCode` AS `postalCode`,trim(both ' ' from concat(if(`ap`.`streetAddress` is null,'',`ap`.`streetAddress`),' ',if(`ap`.`streetAddressSecond` is null,'',`ap`.`streetAddressSecond`),' ',if(`ap`.`streetAddressThird` is null,'',`ap`.`streetAddressThird`))) AS `streetAddress`,`ap`.`longitude` AS `longitude`,`ap`.`latitude` AS `latitude`,`r`.`name` AS `roomName`,`r`.`description` AS `roomDescription`,`r`.`localisation` AS `roomLocalisation`,`r`.`capacity` AS `roomCapacity`,`r`.`floorSize` AS `roomFloorSize`,if(`b`.`image_id` is not null,concat('https://api.opentalent.fr/app.php/_internal/secure/files/',`b`.`image_id`,'/raw'),NULL) AS `imageUrl`,if(`b`.`image_id` is not null,concat('https://api.opentalent.fr/app.php/_internal/secure/files/',`b`.`image_id`,'/0x120'),NULL) AS `thumbnailUrl`,(select group_concat(concat(`f`.`code`) separator ',') from ((`event_categories` `ec` left join `Categories` `cs` on(`cs`.`id` = `ec`.`categories_id`)) left join `Familly` `f` on(`f`.`id` = `cs`.`familly_id`)) where `ec`.`event_id` = `b`.`id`) AS `categories`,'opentalent' AS `origin`,`b`.`id` AS `entityId` from (((((`Booking` `b` join `Organization` `o` on(`o`.`id` = `b`.`organization_id`)) join `Parameters` `par` on(`par`.`id` = `o`.`parameters_id`)) left join `Place` `p` on(`p`.`id` = `b`.`place_id`)) left join `AddressPostal` `ap` on(`ap`.`id` = `p`.`addressPostal_id`)) left join `Room` `r` on(`r`.`id` = `b`.`room_id`)) where `b`.`discr` = 'event' and `b`.`datetimeEnd` >= current_timestamp() and `b`.`visibility` = 'PUBLIC_VISIBILITY' and `b`.`isCanceled` = 0 union select `aw`.`uuid` AS `uuid`,NULL AS `organizationId`,`aw`.`name` AS `name`,`aw`.`description` AS `description`,`aw`.`deepLink` AS `url`,`aw`.`datetimeStart` AS `datetimeStart`,`aw`.`datetimeEnd` AS `datetimeEnd`,`aw`.`place` AS `placeName`,NULL AS `placeDescription`,NULL AS `placeFloorSize`,NULL AS `placeCapacity`,`aw`.`city` AS `city`,`aw`.`postalCode` AS `postalCode`,`aw`.`streetAddress` AS `streetAddress`,`aw`.`longitude` AS `longitude`,`aw`.`latitude` AS `latitude`,NULL AS `roomName`,NULL AS `roomDescription`,NULL AS `roomLocalisation`,NULL AS `roomCapacity`,NULL AS `roomFloorSize`,`aw`.`largeimage` AS `imageUrl`,`aw`.`mediumimage` AS `thumbnailUrl`,`aw`.`categories` AS `categories`,'awin' AS `origin`,`aw`.`id` AS `entityId` from `AwinProduct` `aw` where `aw`.`datetimeEnd` >= current_timestamp() and `aw`.`datetimeStart` is not null */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!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 2023-03-29 17:24:35
