@@ -1,6 +1,7 @@
|
||||
package ru.soune.nocopy.entity.tarif;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
@@ -13,13 +14,11 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
public class Tariff {
|
||||
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "type")
|
||||
@Column(name = "type", unique = true, nullable = false)
|
||||
private String type;
|
||||
|
||||
@Column(name = "tariff_name")
|
||||
|
||||
Reference in New Issue
Block a user