SPMS_API/SPMS.Domain/Entities/Admin.cs
SEAN 04dd5be046 improvement: 마이페이지 조회 확장 (#249)
- Admin 엔티티에 Organization 컬럼 추가 + Migration
- ProfileResponseDto에 last_login_at, organization 필드 추가
- UpdateProfileRequestDto에 organization 필드 추가
- AuthService 프로필 조회/수정 매핑 확장
- 활동 내역 DTO 및 GetActivityListAsync 메서드 추가
- ProfileController 활동 내역 조회 엔드포인트 추가

Closes #249
2026-02-26 10:01:48 +09:00

28 lines
1.0 KiB
C#

using SPMS.Domain.Enums;
namespace SPMS.Domain.Entities;
public class Admin : BaseEntity
{
public string AdminCode { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Phone { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public AdminRole Role { get; set; }
public bool EmailVerified { get; set; }
public DateTime? EmailVerifiedAt { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? LastLoginAt { get; set; }
public string? RefreshToken { get; set; }
public DateTime? RefreshTokenExpiresAt { get; set; }
public bool IsDeleted { get; set; }
public DateTime? DeletedAt { get; set; }
public bool AgreeTerms { get; set; }
public bool AgreePrivacy { get; set; }
public DateTime AgreedAt { get; set; }
public bool MustChangePassword { get; set; }
public DateTime? TempPasswordIssuedAt { get; set; }
public string? Organization { get; set; }
}