package com.izouma.jiashanxia.domain;

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.Column;
import javax.persistence.Entity;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel("收件地址")
public class Address extends BaseEntity {
    private Long userId;

    private String name;

    private String phone;

    private String city;

    private String province;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @Column(nullable = false)
    private Boolean isDefault = false;

}
