package com.izouma.nineth.domain;

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

import javax.persistence.Entity;
import java.time.Duration;
import java.time.LocalDateTime;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AssetLock extends BaseEntity {

    private Long userId;

    private String phone;

    private String nickname;

    private Long assetId;

    private String name;

    private Integer number;

    private LocalDateTime lockAt;

    private LocalDateTime lockTo;

    private Duration duration;
}
