diff --git a/backend/app/Models/Administrador.php b/backend/app/Models/Administrador.php index cc3a484..98b35c2 100644 --- a/backend/app/Models/Administrador.php +++ b/backend/app/Models/Administrador.php @@ -11,6 +11,7 @@ class Administrador extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'administradores'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function usuario() { return $this->belongsTo(Usuario::class); diff --git a/backend/app/Models/BodegaActual.php b/backend/app/Models/BodegaActual.php index 9e4ec30..e4fb8af 100644 --- a/backend/app/Models/BodegaActual.php +++ b/backend/app/Models/BodegaActual.php @@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; class BodegaActual extends Model { protected $table = 'bodega_actual'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function restaurante() { diff --git a/backend/app/Models/BodegaEgreso.php b/backend/app/Models/BodegaEgreso.php index 5d4d7d5..d1bdc6a 100644 --- a/backend/app/Models/BodegaEgreso.php +++ b/backend/app/Models/BodegaEgreso.php @@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; class BodegaEgreso extends Model { protected $table = 'bodega_egresos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function restaurante() { diff --git a/backend/app/Models/BodegaIngreso.php b/backend/app/Models/BodegaIngreso.php index 50f6f82..97db037 100644 --- a/backend/app/Models/BodegaIngreso.php +++ b/backend/app/Models/BodegaIngreso.php @@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; class BodegaIngreso extends Model { protected $table = 'bodega_ingresos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function restaurante() { diff --git a/backend/app/Models/BodegaMovimiento.php b/backend/app/Models/BodegaMovimiento.php index 79d6d09..64ae5f9 100644 --- a/backend/app/Models/BodegaMovimiento.php +++ b/backend/app/Models/BodegaMovimiento.php @@ -8,6 +8,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; class BodegaMovimiento extends Model { protected $table = 'bodega_movimientos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function restaurante() { diff --git a/backend/app/Models/BoletaElectronica.php b/backend/app/Models/BoletaElectronica.php index dccffcd..e734eb3 100644 --- a/backend/app/Models/BoletaElectronica.php +++ b/backend/app/Models/BoletaElectronica.php @@ -11,6 +11,7 @@ class BoletaElectronica extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'boletas_electronicas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function venta() { return $this->belongsTo(Venta::class); diff --git a/backend/app/Models/BoletaExenta.php b/backend/app/Models/BoletaExenta.php index 5499930..0dc3149 100644 --- a/backend/app/Models/BoletaExenta.php +++ b/backend/app/Models/BoletaExenta.php @@ -11,6 +11,7 @@ class BoletaExenta extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'boletas_exentas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function venta() { return $this->belongsTo(Venta::class); diff --git a/backend/app/Models/Caja.php b/backend/app/Models/Caja.php index 120ee75..b0766c1 100644 --- a/backend/app/Models/Caja.php +++ b/backend/app/Models/Caja.php @@ -11,6 +11,7 @@ class Caja extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'cajas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function restaurante() { return $this->belongsTo(Restaurante::class); diff --git a/backend/app/Models/CanalVenta.php b/backend/app/Models/CanalVenta.php index 7818eea..e47cda0 100644 --- a/backend/app/Models/CanalVenta.php +++ b/backend/app/Models/CanalVenta.php @@ -11,6 +11,7 @@ class CanalVenta extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'canales_venta'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre', 'restaurante_id', 'sector_id', 'tipo_canal_id']; public static function findOrFail($id) { diff --git a/backend/app/Models/Categoria.php b/backend/app/Models/Categoria.php index 4af8929..f838576 100644 --- a/backend/app/Models/Categoria.php +++ b/backend/app/Models/Categoria.php @@ -11,6 +11,7 @@ class Categoria extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'categorias'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre', 'restaurante_id']; public static function findOrFail($id) { diff --git a/backend/app/Models/Compra.php b/backend/app/Models/Compra.php index 4097bad..9c6c893 100644 --- a/backend/app/Models/Compra.php +++ b/backend/app/Models/Compra.php @@ -11,6 +11,7 @@ class Compra extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'compras'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = [ 'id', 'fecha_compra', 'proveedor_id', 'en_arqueo', 'restaurante_id' ]; diff --git a/backend/app/Models/CompraIngrediente.php b/backend/app/Models/CompraIngrediente.php index e2135cc..90f2b3e 100644 --- a/backend/app/Models/CompraIngrediente.php +++ b/backend/app/Models/CompraIngrediente.php @@ -11,6 +11,7 @@ class CompraIngrediente extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'compra_ingredientes'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'unidades', 'monto_unitario', 'compra_id', 'ingrediente_id']; public function ingrediente() { diff --git a/backend/app/Models/Efectivo.php b/backend/app/Models/Efectivo.php index d929fbb..802f9bf 100644 --- a/backend/app/Models/Efectivo.php +++ b/backend/app/Models/Efectivo.php @@ -11,6 +11,7 @@ class Efectivo extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'efectivos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function caja() { return $this->belongsTo(Caja::class); diff --git a/backend/app/Models/EstadoProduccion.php b/backend/app/Models/EstadoProduccion.php index 4038757..721720e 100644 --- a/backend/app/Models/EstadoProduccion.php +++ b/backend/app/Models/EstadoProduccion.php @@ -11,4 +11,5 @@ class EstadoProduccion extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'estados_produccion'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; } diff --git a/backend/app/Models/Factura.php b/backend/app/Models/Factura.php index 531b5d7..80f5ecf 100644 --- a/backend/app/Models/Factura.php +++ b/backend/app/Models/Factura.php @@ -11,6 +11,7 @@ class Factura extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'facturas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'numero', 'monto_bruto', 'compra_id']; public static function findOrFail($id) { diff --git a/backend/app/Models/Ingrediente.php b/backend/app/Models/Ingrediente.php index c68612c..cb958c8 100644 --- a/backend/app/Models/Ingrediente.php +++ b/backend/app/Models/Ingrediente.php @@ -11,6 +11,7 @@ class Ingrediente extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'ingredientes'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre', 'medida', 'restaurante_id']; public static function findOrFail($id) { diff --git a/backend/app/Models/MedioPago.php b/backend/app/Models/MedioPago.php index 0a34c9a..52151dd 100644 --- a/backend/app/Models/MedioPago.php +++ b/backend/app/Models/MedioPago.php @@ -11,4 +11,5 @@ class MedioPago extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'medios_pago'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; } diff --git a/backend/app/Models/Mesero.php b/backend/app/Models/Mesero.php index f787e2a..7cbb4da 100644 --- a/backend/app/Models/Mesero.php +++ b/backend/app/Models/Mesero.php @@ -11,6 +11,7 @@ class Mesero extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'meseros'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function usuario() { return $this->belongsTo(Usuario::class); diff --git a/backend/app/Models/Producto.php b/backend/app/Models/Producto.php index a938c65..8fa10aa 100644 --- a/backend/app/Models/Producto.php +++ b/backend/app/Models/Producto.php @@ -11,6 +11,7 @@ class Producto extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'productos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = [ 'id', 'nombre', 'precio_venta', 'categoria_id', 'zona_produccion_id', 'restaurante_id' diff --git a/backend/app/Models/Productor.php b/backend/app/Models/Productor.php index 4fb02a2..0c49b2a 100644 --- a/backend/app/Models/Productor.php +++ b/backend/app/Models/Productor.php @@ -11,6 +11,7 @@ class Productor extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'productores'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function usuario() { return $this->belongsTo(Usuario::class); diff --git a/backend/app/Models/Proveedor.php b/backend/app/Models/Proveedor.php index b43788a..b745f41 100644 --- a/backend/app/Models/Proveedor.php +++ b/backend/app/Models/Proveedor.php @@ -11,6 +11,7 @@ class Proveedor extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'proveedores'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = [ 'id', 'rut', 'nombre', 'descripcion', 'direccion', 'telefono', 'restaurante_id' diff --git a/backend/app/Models/Recaudador.php b/backend/app/Models/Recaudador.php index 44ad161..626d0cd 100644 --- a/backend/app/Models/Recaudador.php +++ b/backend/app/Models/Recaudador.php @@ -11,6 +11,7 @@ class Recaudador extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'recaudadores'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function usuario() { return $this->belongsTo(Usuario::class); diff --git a/backend/app/Models/Receta.php b/backend/app/Models/Receta.php index f8834e8..fee3eb3 100644 --- a/backend/app/Models/Receta.php +++ b/backend/app/Models/Receta.php @@ -10,6 +10,7 @@ class Receta extends Model { use UuidPrimaryKey; protected $table = 'recetas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['unidades', 'producto_id', 'ingrediente_id']; public function ingrediente() { diff --git a/backend/app/Models/Restaurante.php b/backend/app/Models/Restaurante.php index 5389b44..1f16faa 100644 --- a/backend/app/Models/Restaurante.php +++ b/backend/app/Models/Restaurante.php @@ -13,7 +13,7 @@ class Restaurante extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'restaurantes'; - + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre']; public static function findOrFail($id) { diff --git a/backend/app/Models/Sector.php b/backend/app/Models/Sector.php index b36d2ba..4a7ffdc 100644 --- a/backend/app/Models/Sector.php +++ b/backend/app/Models/Sector.php @@ -11,6 +11,7 @@ class Sector extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'sectores'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre', 'restaurante_id']; public static function findOrFail($id) { diff --git a/backend/app/Models/TipoCanal.php b/backend/app/Models/TipoCanal.php index d08f5df..1d30f2c 100644 --- a/backend/app/Models/TipoCanal.php +++ b/backend/app/Models/TipoCanal.php @@ -11,4 +11,5 @@ class TipoCanal extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'tipos_canal'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; } diff --git a/backend/app/Models/Usuario.php b/backend/app/Models/Usuario.php index 50f0c0b..5af8ae5 100644 --- a/backend/app/Models/Usuario.php +++ b/backend/app/Models/Usuario.php @@ -16,6 +16,7 @@ class Usuario extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'usuarios'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'auth0_id', 'nombre']; protected $appends = ['roles']; diff --git a/backend/app/Models/Venta.php b/backend/app/Models/Venta.php index 4ba7854..ee35578 100644 --- a/backend/app/Models/Venta.php +++ b/backend/app/Models/Venta.php @@ -11,6 +11,7 @@ class Venta extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'ventas'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function mesero() { return $this->belongsTo(Mesero::class); diff --git a/backend/app/Models/VentaProducto.php b/backend/app/Models/VentaProducto.php index 5b3c929..c24b2c1 100644 --- a/backend/app/Models/VentaProducto.php +++ b/backend/app/Models/VentaProducto.php @@ -11,6 +11,7 @@ class VentaProducto extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'venta_productos'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; public function venta() { return $this->belongsTo(Venta::class); diff --git a/backend/app/Models/ZonaProduccion.php b/backend/app/Models/ZonaProduccion.php index 95bc971..15199aa 100644 --- a/backend/app/Models/ZonaProduccion.php +++ b/backend/app/Models/ZonaProduccion.php @@ -11,6 +11,7 @@ class ZonaProduccion extends Model { use UuidPrimaryKey, SoftDeletes; protected $table = 'zonas_produccion'; + protected $hidden = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = ['id', 'nombre', 'restaurante_id']; public static function findOrFail($id) {