package com.usky.issue.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 云平台实体审计字段基类
 *
 * @author fyc
 * @date 2026-05-21
 */
@Data
public abstract class CloudAuditEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 租户ID */
    private Integer tenantId;

    private String createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;

    private String updatedBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;

    @TableLogic(value = "0", delval = "1")
    private Integer isDeleted;
}
