34 lines
723 B
Java
34 lines
723 B
Java
package ru.soune.nocopy.entity.tarif;
|
|||
|
|
|
||
|
|
import jakarta.persistence.*;
|
||
|
|
import lombok.AllArgsConstructor;
|
||
|
|
import lombok.Getter;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
import lombok.Setter;
|
||
|
|
|
||
|
|
import java.time.LocalDateTime;
|
||
|
|
|
||
|
|
@Entity
|
||
|
|
@Table(name = "tariff_info")
|
||
|
|
@AllArgsConstructor
|
||
|
|
@NoArgsConstructor
|
||
|
|
@Getter @Setter
|
||
|
|
public class TariffInfo {
|
||
|
|
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.UUID)
|
||
|
|
private String id;
|
||
|
|
|
||
|
|
@Column(name = "status", nullable = false)
|
||
|
|
private TariffStatus status;
|
||
|
|
|
||
|
|
@Column(name = "start_tariff")
|
||
|
|
private LocalDateTime startTariff;
|
||
|
|
|
||
|
|
@Column(name = "end_tariff")
|
||
|
|
private LocalDateTime endTariff;
|
||
|
|
|
||
|
|
@ManyToOne
|
||
|
|
@JoinColumn(name = "tariff_id")
|
||
|
|
private Tariff tariff;
|
||
|
|
}
|