/**
 * @ProjectName: 智慧评标-主观分助手
 * @Package: com.zhpb.gdyd_zhpb_zgf.entity.mysql
 * @ClassName: SsoLog
 * @Description: SSO登录日志实体类，映射t_sso_log表，记录SSO登录的详细信息
 * @Author: 张志锋
 * @Date: 2025-10-31
 * @Version: 1.0
 * @Copyright: © 2025 智慧评标-主观分助手
 */
package com.zhpb.gdyd_zhpb_zgf.entity.mysql;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * SSO登录日志实体类
 */
@Entity
@Table(name = "t_sso_log")
@Data
public class SsoLog {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(name = "ticket", length = 256)
    private String ticket;
    
    @Column(name = "user_id", length = 64)
    private String userId;
    
    @Column(name = "user_name", length = 128)
    private String userName;
    
    @Column(name = "project_id", length = 64)
    private String projectId;
    
    @Column(name = "token", length = 512)
    private String token;
    
    @Column(name = "login_ip", length = 64)
    private String loginIp;
    
    @Column(name = "login_status", length = 32)
    private String loginStatus;
    
    @Column(name = "error_msg", length = 512)
    private String errorMsg;
    
    @Column(name = "request_url", length = 512)
    private String requestUrl;
    
    @Column(name = "response_data", columnDefinition = "TEXT")
    private String responseData;
    
    @Column(name = "login_time")
    private LocalDateTime loginTime;
    
    @Column(name = "create_time")
    private LocalDateTime createTime;
}

