42 lines
965 B
PHP
42 lines
965 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Model;
|
|
|
|
use Hyperf\DbConnection\Model\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property string $title
|
|
* @property int $city_id
|
|
* @property int $image_id
|
|
* @property int $type
|
|
* @property string $value
|
|
* @property int $status
|
|
* @property int $sort
|
|
* @property string $create_time
|
|
* @property string $update_time
|
|
*/
|
|
class Banner extends Model
|
|
{
|
|
/**
|
|
* The table associated with the model.
|
|
*/
|
|
protected ?string $table = 'banner';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected array $fillable = [];
|
|
protected array $guarded = [];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*/
|
|
protected array $casts = ['id' => 'integer', 'type' => 'integer','city_id' => 'integer','image_id' => 'integer','status' => 'integer','sort' => 'integer'];
|
|
|
|
const string CREATED_AT = 'create_time';
|
|
const string UPDATED_AT = 'update_time';
|
|
}
|