package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: UserDistributeSharedWhite
 * 创建者: JavaZou
 * 创建时间:2024/1/8 10:28
 */
@Getter
@Setter
@SearchBean(tables = "user_distribute_shared_white uw left join user u on u.id = uw.user_id")
public class UserDistributeSharedWhite {

	@TableId(value = "id",type = IdType.AUTO)
	@DbField("uw.id")
	private Long id;

	@DbField("uw.user_id")
	private Long userId;

	@DbField("u.nickname")
	@TableField(exist = false)
	private String nickname;

	/**
	 * 创建时间
	 */

	@TableField(fill = FieldFill.INSERT)
	@DbField("uw.created_time")
	private Date createdTime;

	/**
	 * 修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@DbField("uw.update_time")
	private Date updateTime;
}
