package com.ffii.fhsmsc.modules.User_group.enity;
import com.ffii.core.entity.BaseEntity;

import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;

/** @author Terence */
@Entity
@Table(name = "User_Group_Members",
    uniqueConstraints = {
        @UniqueConstraint(columnNames = {"User_Grp_Org_ID", "User_ID"})
    }
)
public class UserGroupMembers extends BaseEntity<Long> {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private Long User_Grp_Org_ID;

    @Column(nullable = false)
    private Long User_ID;

    @Column
    private String R_Ship_Creator;

    @Column
    private Date Creation_Date_Time;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public Long getUser_Grp_Org_ID() {
        return User_Grp_Org_ID;
    }

    public void setUser_Grp_Org_ID(Long user_Grp_Org_ID) {
        User_Grp_Org_ID = user_Grp_Org_ID;
    }

    public Long getUser_ID() {
        return User_ID;
    }

    public void setUser_ID(Long user_ID) {
        User_ID = user_ID;
    }

    public String getR_Ship_Creator() {
        return R_Ship_Creator;
    }

    public void setR_Ship_Creator(String r_Ship_Creator) {
        R_Ship_Creator = r_Ship_Creator;
    }

    public Date getCreation_Date_Time() {
        return Creation_Date_Time;
    }

    public void setCreation_Date_Time(Date creation_Date_Time) {
        Creation_Date_Time = creation_Date_Time;
    }
}
