/**
 * @ProjectName: 智慧评标-主观分助手
 * @Package: com.zhpb.gdyd_zhpb_zgf.entity.mysql
 * @ClassName: User
 * @Description: MySQL用户实体类，映射t_user表，存储用户基本信息
 * @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;

/**
 * MySQL 用户实体类
 */
@Entity
@Table(name = "t_user")
@Data
public class User {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @Column(name = "user_id", unique = true, nullable = false, length = 64)
    private String userId;
    
    @Column(name = "name", nullable = false, length = 128)
    private String name;
    
    @Column(name = "project_id", length = 64)
    private String projectId;
    
    @Column(name = "status", length = 16)
    private String status;
    
    @Column(name = "create_time")
    private LocalDateTime createTime;
    
    @Column(name = "update_time")
    private LocalDateTime updateTime;
}

