package com.alterdekim.game.entity;

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

@Getter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "relationship")
public class Relationship {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false)
    private Integer senderId;

    @Column(nullable = false)
    private Integer recepientId;

    @Enumerated(value = EnumType.STRING)
    private FriendshipStatus status;

    public enum FriendshipStatus {
        Request,
        Friendship
    }
}
