package com.izouma.dingdong.domain.rider;

import com.izouma.dingdong.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel(value = "RiderSign", description = "骑手签到表")
public class RiderSign extends BaseEntity {

    @ApiModelProperty(value = "骑手Id", name = "riderId")
    private Long riderId;

//    @ApiModelProperty(value = "签到", name = "signIn")
//    private Boolean signIn;

    @ApiModelProperty(value = "签到时间", name = "signTime")
    private LocalDateTime signTime;

//    @ApiModelProperty(value = "位置")
//    private String location;

    @ApiModelProperty(value = "经度", name = "longitude")
    private Double longitude;

    @ApiModelProperty(value = "纬度", name = "latitude")
    private Double latitude;
}
