*/ protected function casts(): array { return [ 'consent_type' => ConsentType::class, 'agreed_at' => 'datetime', 'revoked_at' => 'datetime', 'created_at' => 'datetime', ]; } // ────────────────────────────────────── // 관계 (Relationships) // ────────────────────────────────────── /** * 동의한 사용자를 반환합니다. * * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }