package com.sptg.statistics.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.IdType;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * title: AppMemberLoginRecords
 * package: com.sptg.statistics.api.entity
 * description: 会员登录记录
 *
 *                
 *                
 */
@Setter
@Getter
@TableName(value = "app_member_login_records")
public class AppMemberLoginRecords {

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

    /**
     * 会员id
     */
    @TableField(value = "l_member_id")
    private Long memberId;

    /**
     * 登录类型 0-小程序登录 1-app登录
     */
    @TableField(value = "i_login_type")
    private Integer loginType;

    /**
     * 登录时间
     */
    @TableField(value = "t_login_date")
    private Date loginDate;

    /**
     * 根机构Id
     */
    @TableField(value = "l_root_org_id")
    private Long rootOrgId;

    /**
     * 存储位置
     */
    @TableField(value = "s_org_position")
    private String orgPosition;
}
