*/ protected $fillable = [ 'open_id', 'inpatient_id', 'inpatient_name', 'in_time', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'id' => 'integer', 'in_time' => 'datetime', ]; /** * Relationships inpatientRechargeRecord. */ public function inpatientRechargeRecord(): HasMany { return $this->hasMany(InpatientRechargeRecord::class, 'relate_id'); } }