package cn.lihongjie.coal.dataCollector.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;

import jakarta.persistence.Entity;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.time.LocalDateTime;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_data_collector_org_id", columnList = "organization_id"))

public class DataCollectorEntity extends OrgCommonEntity {


    private String appKey;
    private String appSecret;

    @Comment("心跳时间")
    private LocalDateTime heartbeatTime;

    @Comment("最后登录时间")
    private LocalDateTime lastLoginTime;

    @Comment("最后登出时间")
    private LocalDateTime lastLogoutTime;

}