48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
use Hyperf\DbConnection\Model\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $depot_id
|
|
* @property int $material_id
|
|
* @property int $supplier_id
|
|
* @property int $dish_id
|
|
* @property string $sale_price
|
|
* @property string $number
|
|
* @property string $back_number
|
|
* @property string $sum_price
|
|
* @property int $application_id
|
|
* @property int $city_id
|
|
* @property int $kitchen_id
|
|
* @property int $operator_id
|
|
* @property int $is_del
|
|
* @property string $create_time
|
|
* @property string $update_time
|
|
*/
|
|
class DepotSale extends Model
|
|
{
|
|
/**
|
|
* The table associated with the model.
|
|
*/
|
|
protected ?string $table = 'depot_sale';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected array $fillable = [];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*/
|
|
protected array $casts = ['id' => 'integer', 'depot_id' => 'integer', 'material_id' => 'integer', 'supplier_id' => 'integer', 'dish_id' => 'integer', 'application_id' => 'integer', 'city_id' => 'integer', 'kitchen_id' => 'integer', 'operator_id' => 'integer', 'is_del' => 'integer'];
|
|
|
|
const string CREATED_AT = 'create_time';
|
|
|
|
const string UPDATED_AT = 'update_time';
|
|
}
|