98 lines
4.1 KiB
PHP
98 lines
4.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property \Illuminate\Support\Carbon $date
|
|
* @property \Illuminate\Support\Carbon|null $last_change_date
|
|
* @property string|null $supplier_article
|
|
* @property string|null $tech_size
|
|
* @property string|null $barcode
|
|
* @property int $quantity
|
|
* @property bool|null $is_supply
|
|
* @property bool|null $is_realization
|
|
* @property int|null $quantity_full
|
|
* @property string|null $warehouse_name
|
|
* @property int|null $in_way_to_client
|
|
* @property int|null $in_way_from_client
|
|
* @property int|null $nm_id
|
|
* @property string|null $subject
|
|
* @property string|null $category
|
|
* @property string|null $brand
|
|
* @property string|null $sc_code
|
|
* @property string|null $price
|
|
* @property string|null $discount
|
|
* @property \Illuminate\Support\Carbon|null $created_at
|
|
* @property \Illuminate\Support\Carbon|null $updated_at
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereBarcode($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereBrand($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereCategory($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereDiscount($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereInWayFromClient($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereInWayToClient($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereIsRealization($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereIsSupply($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereLastChangeDate($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereNmId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock wherePrice($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereQuantity($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereQuantityFull($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereScCode($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereSubject($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereSupplierArticle($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereTechSize($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereUpdatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder<static>|Stock whereWarehouseName($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class Stock extends Model
|
|
{
|
|
protected $table = 'stocks';
|
|
|
|
protected $fillable = [
|
|
'date',
|
|
'last_change_date',
|
|
'supplier_article',
|
|
'tech_size',
|
|
'barcode',
|
|
'quantity',
|
|
'is_supply',
|
|
'is_realization',
|
|
'quantity_full',
|
|
'warehouse_name',
|
|
'in_way_to_client',
|
|
'in_way_from_client',
|
|
'nm_id',
|
|
'subject',
|
|
'category',
|
|
'brand',
|
|
'sc_code',
|
|
'price',
|
|
'discount',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'date' => 'date',
|
|
'last_change_date' => 'date',
|
|
'is_supply' => 'boolean',
|
|
'is_realization' => 'boolean',
|
|
'quantity' => 'integer',
|
|
'quantity_full' => 'integer',
|
|
'in_way_to_client' => 'integer',
|
|
'in_way_from_client' => 'integer',
|
|
'nm_id' => 'integer',
|
|
];
|
|
}
|
|
}
|