Browse Source

Update database

master
root 5 years ago
parent
commit
cf1d8d82cb
  1. 4
      src/Entity/Comentarios.php
  2. 10
      src/Entity/Facturas.php
  3. 8
      src/Entity/Formularios.php
  4. 8
      src/Entity/Modulos.php
  5. 8
      src/Entity/Pagina.php
  6. 4
      src/Entity/Productovariantes.php

4
src/Entity/Comentarios.php

@ -31,9 +31,9 @@ class Comentarios
/**
* @var \DateTime
*
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fecha = 'current_timestamp()';
private $fecha;
/**
* @var int

10
src/Entity/Facturas.php

@ -24,9 +24,9 @@ class Facturas
/**
* @var \DateTime
*
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fecha = 'current_timestamp()';
private $fecha;
/**
* @var bool
@ -52,21 +52,21 @@ class Facturas
/**
* @var float
*
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=false)
* @ORM\Column(name="precio", type="decimal", precision=7, scale=2, nullable=false)
*/
private $precio;
/**
* @var float
*
* @ORM\Column(name="impuestos", type="float", precision=10, scale=0, nullable=false, options={"comment"="total de los impuestos en euros"})
* @ORM\Column(name="impuestos", type="decimal", precision=7, scale=2, nullable=false, options={"comment"="total de los impuestos en euros"})
*/
private $impuestos;
/**
* @var float
*
* @ORM\Column(name="total", type="float", precision=10, scale=0, nullable=false)
* @ORM\Column(name="total", type="decimal", precision=7, scale=2, nullable=false)
*/
private $total;

8
src/Entity/Formularios.php

@ -45,16 +45,16 @@ class Formularios
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaModificacion = 'current_timestamp()';
private $fechaModificacion;
/**
* @var \Plantillas

8
src/Entity/Modulos.php

@ -52,16 +52,16 @@ class Modulos
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaModificacion = 'current_timestamp()';
private $fechaModificacion;
public function getId(): ?int
{

8
src/Entity/Pagina.php

@ -52,16 +52,16 @@ class Pagina
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_creacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaCreacion = 'current_timestamp()';
private $fechaCreacion;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="current_timestamp()"})
* @ORM\Column(name="fecha_actualizacion", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fechaActualizacion = 'current_timestamp()';
private $fechaActualizacion;
/**
* @var \Plantillas

4
src/Entity/Productovariantes.php

@ -38,9 +38,9 @@ class Productovariantes
/**
* @var float|null
*
* @ORM\Column(name="precio", type="float", precision=10, scale=0, nullable=true, options={"default"="NULL"})
* @ORM\Column(name="precio", type="decimal", precision=7, scale=2, nullable=true, options={"default"="0"})
*/
private $precio = NULL;
private $precio = 0;
/**
* @var \Productos

Loading…
Cancel
Save