2026-01-30 12:52:16 +07:00
|
|
|
package ru.soune.nocopy.entity.tarif;
|
|
|
|
|
|
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Getter;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
import lombok.Setter;
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name = "tariff")
|
|
|
|
|
@AllArgsConstructor
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@Getter
|
|
|
|
|
@Setter
|
|
|
|
|
public class Tariff {
|
|
|
|
|
@Id
|
|
|
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
|
|
private Long id;
|
|
|
|
|
|
2026-02-02 15:00:18 +07:00
|
|
|
@Column(name = "type", unique = true, nullable = false)
|
2026-01-30 12:52:16 +07:00
|
|
|
private String type;
|
|
|
|
|
|
|
|
|
|
@Column(name = "tariff_name")
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
@Column(name = "price")
|
|
|
|
|
private double price;
|
|
|
|
|
|
|
|
|
|
@Column(name = "tokens")
|
|
|
|
|
private int tokens;
|
|
|
|
|
|
|
|
|
|
@Column(name = "max_files_count")
|
|
|
|
|
private int maxFilesCount;
|
|
|
|
|
|
|
|
|
|
@Column(name = "disk_size")
|
|
|
|
|
private Long diskSize;
|
|
|
|
|
|
|
|
|
|
@Column(name = "max_users")
|
|
|
|
|
private Long maxUsers;
|
|
|
|
|
}
|