package com.mall.coupon.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
@TableName("sms_coupon_spu_category_relation")
@Schema(name = "CouponSpuCategoryRelation对象", title = "优惠券分类关联", description = "优惠券分类关联的实体类对象")
public class CouponSpuCategoryRelation {

    @Schema(name = "id", title = "id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(name = "couponId", title = "优惠券id")
    private Long couponId;

    @Schema(name = "categoryId", title = "产品分类id")
    private Long categoryId;

    @Schema(name = "categoryName", title = "产品分类名称")
    private String categoryName;

}