LivraisonParSecteurs : il manquait des fichiers dans Git

This commit is contained in:
2021-02-17 20:31:47 +01:00
parent 37220bfef9
commit ccaf4c7719
8 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Sqlfile -> Database map
thelia.sql=thelia

View File

@@ -0,0 +1,71 @@
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- lps_area
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `lps_area`;
CREATE TABLE `lps_area`
(
`id` INTEGER NOT NULL,
`title` VARCHAR(50) NOT NULL,
`active` TINYINT DEFAULT 1 NOT NULL,
`price` FLOAT DEFAULT 0 NOT NULL,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
-- ---------------------------------------------------------------------
-- lps_area_city
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `lps_area_city`;
CREATE TABLE `lps_area_city`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`id_area` INTEGER NOT NULL,
`zipcode` VARCHAR(10) NOT NULL,
`title` VARCHAR(50) NOT NULL,
`latitude` DOUBLE,
`longitude` DOUBLE,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`),
INDEX `fi_area_area_city` (`id_area`),
CONSTRAINT `fk_area_area_city`
FOREIGN KEY (`id_area`)
REFERENCES `lps_area` (`id`)
ON DELETE CASCADE
) ENGINE=InnoDB;
-- ---------------------------------------------------------------------
-- lps_area_schedule
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `lps_area_schedule`;
CREATE TABLE `lps_area_schedule`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`id_area` INTEGER NOT NULL,
`day` INTEGER NOT NULL,
`begin_time` TIME NOT NULL,
`end_time` TIME NOT NULL,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`),
INDEX `fi_area_area_schedule` (`id_area`),
CONSTRAINT `fk_area_area_schedule`
FOREIGN KEY (`id_area`)
REFERENCES `lps_area` (`id`)
ON DELETE CASCADE
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsArea as BaseLpsArea;
/**
* Skeleton subclass for representing a row from the 'lps_area' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsArea extends BaseLpsArea
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsAreaCity as BaseLpsAreaCity;
/**
* Skeleton subclass for representing a row from the 'lps_area_city' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsAreaCity extends BaseLpsAreaCity
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsAreaCityQuery as BaseLpsAreaCityQuery;
/**
* Skeleton subclass for performing query and update operations on the 'lps_area_city' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsAreaCityQuery extends BaseLpsAreaCityQuery
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsAreaQuery as BaseLpsAreaQuery;
/**
* Skeleton subclass for performing query and update operations on the 'lps_area' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsAreaQuery extends BaseLpsAreaQuery
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsAreaSchedule as BaseLpsAreaSchedule;
/**
* Skeleton subclass for representing a row from the 'lps_area_schedule' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsAreaSchedule extends BaseLpsAreaSchedule
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace LivraisonParSecteurs\Model;
use LivraisonParSecteurs\Model\Base\LpsAreaScheduleQuery as BaseLpsAreaScheduleQuery;
/**
* Skeleton subclass for performing query and update operations on the 'lps_area_schedule' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
class LpsAreaScheduleQuery extends BaseLpsAreaScheduleQuery
{
}