package com.xunmei.core.resumption.domain;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author oygj
 * @since 2023-07-04
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("t_app_todo_user")
@ApiModel(value = "TodoUser对象", description = "")
public class TodoUser implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @TableField("todo_id")
    private String todoId;

    @ApiModelProperty(value = "应用")
    @TableField("app_id")
    private Long appId;

    @TableField("user_id")
    private Long userId;

    public TodoUser(Long id, String todoId, Long userId) {
        this.id = id;
        this.todoId = todoId;
        this.userId = userId;
    }

}


