118 lines
5.1 KiB
PHP
118 lines
5.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property string $g_number
|
|
* @property \Illuminate\Support\Carbon $date
|
|
* @property \Illuminate\Support\Carbon|null $last_change_date
|
|
* @property string|null $supplier_article
|
|
* @property string|null $tech_size
|
|
* @property int|null $barcode
|
|
* @property string|null $total_price
|
|
* @property int|null $discount_percent
|
|
* @property bool $is_supply
|
|
* @property bool $is_realization
|
|
* @property string|null $promo_code_discount
|
|
* @property string|null $warehouse_name
|
|
* @property string|null $country_name
|
|
* @property string|null $oblast_okrug_name
|
|
* @property string|null $region_name
|
|
* @property int|null $income_id
|
|
* @property string|null $sale_id
|
|
* @property int|null $odid
|
|
* @property string|null $spp
|
|
* @property numeric|null $for_pay
|
|
* @property numeric|null $finished_price
|
|
* @property numeric|null $price_with_disc
|
|
* @property int|null $nm_id
|
|
* @property string|null $subject
|
|
* @property string|null $category
|
|
* @property string|null $brand
|
|
* @property bool|null $is_storno
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereBarcode($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereBrand($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereCategory($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereCountryName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereDiscountPercent($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereFinishedPrice($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereForPay($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereGNumber($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereIncomeId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereIsRealization($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereIsStorno($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereIsSupply($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereLastChangeDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereNmId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereOblastOkrugName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereOdid($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale wherePriceWithDisc($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale wherePromoCodeDiscount($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereRegionName($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereSaleId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereSpp($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereSubject($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereSupplierArticle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereTechSize($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereTotalPrice($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereUpdatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Sale whereWarehouseName($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Sale extends Model
|
|
{
|
|
protected $table = 'sales';
|
|
|
|
protected $fillable = [
|
|
'g_number',
|
|
'date',
|
|
'last_change_date',
|
|
'supplier_article',
|
|
'tech_size',
|
|
'barcode',
|
|
'total_price',
|
|
'discount_percent',
|
|
'is_supply',
|
|
'is_realization',
|
|
'promo_code_discount',
|
|
'warehouse_name',
|
|
'country_name',
|
|
'oblast_okrug_name',
|
|
'region_name',
|
|
'income_id',
|
|
'sale_id',
|
|
'odid',
|
|
'spp',
|
|
'for_pay',
|
|
'finished_price',
|
|
'price_with_disc',
|
|
'nm_id',
|
|
'subject',
|
|
'category',
|
|
'brand',
|
|
'is_storno',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'date' => 'date',
|
|
'last_change_date' => 'date',
|
|
'is_supply' => 'boolean',
|
|
'is_realization' => 'boolean',
|
|
'is_storno' => 'boolean',
|
|
];
|
|
}
|
|
}
|