*/ use HasFactory; /** * Owner (shopkeeper) account. * * @return BelongsTo */ public function owner(): BelongsTo { return $this->belongsTo(User::class, 'owner_id'); } /** * AI agent controlling the store, when assigned. * * @return BelongsTo */ public function agent(): BelongsTo { return $this->belongsTo(AiAgent::class, 'agent_id'); } /** * Get the attributes that should be cast to native types. * * @return array */ protected function casts(): array { return [ 'pos_x' => 'float', 'pos_y' => 'float', 'pos_z' => 'float', 'width' => 'float', 'height' => 'float', 'depth' => 'float', 'revenue' => 'float', 'is_open' => 'boolean', ]; } }