package io.gmss.fiscad.entities.metadata;

import com.vladmihalcea.hibernate.type.json.JsonBinaryType;
import io.gmss.fiscad.entities.BaseEntity;
import io.gmss.fiscad.paylaods.request.MembreGroupePayLoad;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Type;

import java.io.Serializable;

@Entity
@Getter
@Setter
public class MobileDataMembreGroupe extends BaseEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private Long terminalId;
    private Long externalKey;
    @Type(JsonBinaryType.class)
    @Column(columnDefinition = "jsonb")
    private MembreGroupePayLoad membreGroupePayLoad ;
    @Column(columnDefinition = "boolean default false")
    private boolean traiter;
}