package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;

/**
 * 商品-规格关联对象 food_spec_relation
 * 商品与规格组的多对多关联
 *
 * @author ruoyi
 * @date 2026-07-15
 */
@Data
@TableName(value = "food_spec_relation")
@EqualsAndHashCode(callSuper = false)
public class FoodSpecRelation
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 商品id（pos_food.id） */
    private Long foodId;

    /** 规格组id（food_specs.id） */
    private Long specsId;
}
