package com.seer.teach.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seer.teach.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * 权限同步日志表
 * </p>
 *
 * @author Wang
 * @since 2025-07-25 14:48:04
 */
@ToString
@Getter
@Setter
@TableName("za_permission_sync_log")
@Schema(name = "PermissionSyncLogEntity对象", description = "权限同步日志表")
public class PermissionSyncLogEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "服务名称")
    @TableField("service_name")
    private String serviceName;

    @Schema(description = "同步完成时间")
    @TableField("sync_time")
    private LocalDateTime syncTime;

    @Schema(description = "同步耗时(毫秒)")
    @TableField("duration_ms")
    private Integer durationMs;

    @Schema(description = "新增权限点数量")
    @TableField("added_count")
    private Integer addedCount;

    @Schema(description = "新增权限点明细(JSON数组)")
    @TableField("added_permissions")
    private String addedPermissions;

    @Schema(description = "删除权限点数量")
    @TableField("deleted_count")
    private Integer deletedCount;

    @Schema(description = "删除权限点明细(JSON数组)")
    @TableField("deleted_permissions")
    private String deletedPermissions;

    @Schema(description = "更新权限点数量")
    @TableField("updated_count")
    private Integer updatedCount;

    @Schema(description = "更新权限点明细(JSON数组)")
    @TableField("updated_permissions")
    private String updatedPermissions;



}
