package com.psg.dlsysinfo.dl_sysinfo_server.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = "clients")
@Getter
@Setter
@NoArgsConstructor
public class Client {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "clientId")
    private Long clientId;

    @Column(unique = true, nullable = false)
    private String clientIdentifier;

    @Column(name = "client_name_hash", nullable = false)
    private String clientNameHash;

    public Client(String clientIdentifier, String clientNameHash) {
        this.clientIdentifier = clientIdentifier;
        this.clientNameHash = clientNameHash;
    }

    @Column(name = "client_name_encrypted")
    private String clientNameEncrypted;

}
