package com.zhiqiyun.open.core.models.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zhiqiyun.open.core.enmus.YN;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName(value = "app_key_info", autoResultMap = true)
public class AppKeyInfo {
    @TableId(type = IdType.INPUT)
    private Long id;
    private String encryptKey;
    private String remark;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> permissions;

    private YN isEnable;
    private Date createdTime;
}
