package com.izouma.nineth.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "point_record", indexes = {
        @Index(columnList = "userId"),
        @Index(columnList = "collectionId")
})
public class PointRecord extends BaseEntity {
    private Long userId;

    private Long collectionId;

    private int point;

    private String type;
}
