remove old models

This commit is contained in:
Ludovic CANDELLIER
2024-01-22 22:52:03 +01:00
parent 0bb75125a7
commit fc5a3186bf
3 changed files with 0 additions and 81 deletions

View File

@@ -1,32 +0,0 @@
<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class Price extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_prices';
public function article()
{
return $this->belongsTo(Article::class);
}
public function article_family()
{
return $this->belongsTo(ArticleNature::class);
}
public function scopeByArticle($query, $id)
{
return $query->where($this->table.'.article_id', $id);
}
public function scopeByArticleNature($query, $id)
{
return $query->where($this->table.'.article_family_id', $id);
}
}

View File

@@ -1,22 +0,0 @@
<?php
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
class PriceGenericCategory extends Model
{
protected $guarded = ['id'];
protected $table = 'shop_price_generic_categories';
public function article_family()
{
return $this->belongsTo(ArticleNature::class);
}
public function price_generics()
{
return $this->hasMany(PriceGeneric::class, 'category_id');
}
}