package com.remy.goods.entity;

import com.remy.common.entity.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@Table(name = "t_goods")
public class Goods extends BaseEntity {

    private static final long serialVersionUID = -587513661424575233L;

    @Column(name = "serial_no")
    private String serialNo;

    @Column(name = "name")
    private String name;

    @Column(name = "description")
    private String description;

    @Column(name = "img")
    private String img;

    @Column(name = "detail")
    private String detail;

    @Column(name = "price")
    private BigDecimal price;

    @Column(name = "item_count")
    private Integer itemCount;

}
