package com.example.domain;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Getter;
import lombok.Setter;

@Entity
@Getter
@Setter
@Table(name="sales_logs")
public class SalesLog {
	@Id
	@GeneratedValue
	private Integer id;
	private Integer userId;
	private Integer shoesId;
	private Integer price;
	private Date  created;

	@ManyToOne
	@JoinColumn(name = "shoesId", insertable = false, updatable = false)
	Shoes shoes;
}

