package com.sptg.permissions.api.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * title: RoleMenu
 * package: com.sptg.permissions.api.entity
 * description: 账号角色关联-实体类
 *
 *                  
 *                 
 */
@Getter
@Setter
@TableName(value = "account_oauth")
public class AccountOauth {

    /**
     * 主键
     */
    @TableId(value = "l_id",type = IdType.AUTO)
    private Long id;


    @TableField(value = "l_account_id", strategy = FieldStrategy.IGNORED)
    private Long accountId;

    /**
     * 第三方用户ID
     */
    @TableField(value = "s_uuId")
    private String uuId;

    /**
     * 账户名
     */
    @TableField(value = "s_user_name")
    private String userName;

    /**
     * 用户昵称
     */
    @TableField(value = "s_nick_name")
    private String nickName;

    /**
     * 用户头像
     */
    @TableField(value = "s_avatar")
    private String avatar;

    /**
     * 用户邮箱
     */
    @TableField(value = "s_email")
    private String email;

    /**
     * 用户手机号
     */
    @TableField(value = "s_mobile")
    private String mobile;

    /**
     * 用户来源
     */
    @TableField(value = "s_source")
    private String source;

    /**
     * 删除标记：{ -1：已删除，0：正常 }
     */
    @TableField(value = "i_status")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_create_date")
    private Date createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "t_update_date")
    private Date updateDate;

}