gurl_o/plugins/tps/birzha/models/VendorSales.php

34 lines
702 B
PHP
Raw Permalink Normal View History

2023-10-01 06:27:37 +00:00
<?php namespace TPS\Birzha\Models;
use Model;
/**
* Model
*/
class VendorSales extends Model
{
use \October\Rain\Database\Traits\Validation;
use \October\Rain\Database\Traits\SoftDelete;
protected $dates = ['deleted_at'];
/**
* @var string The database table used by the model.
*/
public $table = 'tps_birzha_vendor_sales';
public $belongsTo = [
'product' => ['TPS\Birzha\Models\Product','key' => 'product_id'],
'vendor' => ['RainLab\User\Models\User','key' => 'vendor_id'],
'order' => ['TPS\Birzha\Models\Orders','key' => 'order_id'],
];
/**
* @var array Validation rules
*/
public $rules = [
];
}