<?php
declare (strict_types=1);
namespace App\System\Model;
use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;
class SystemDictType extends MineModel
{
use SoftDeletes;
public $incrementing = false;
protected $table = 'system_dict_type';
protected $fillable = ['id', 'name', 'code', 'status', 'created_by', 'updated_by', 'created_at', 'updated_at', 'deleted_at', 'remark'];
protected $casts = ['id' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
public function dictData() : \Hyperf\Database\Model\Relations\HasMany
{
return $this->hasMany(SystemDictData::class, 'type_id', 'id');
}
}