*/ use HasFactory, Notifiable; /** * The attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'is_approved' => 'boolean', 'role' => 'string', ]; } /** * Get all of the prompt projects for the user. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PromptProject> */ public function projects(): HasMany { return $this->hasMany(PromptProject::class); } /** * Get all of the prompt generations for the user. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PromptGeneration> */ public function generations(): HasMany { return $this->hasMany(PromptGeneration::class); } }