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;

    @Column(name = "type", unique = true, nullable = false)
    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;

    @Column(name = "tariffAccountType")
    private String tariffAccountType;

    @Column(name = "tariff_term")
    @Enumerated(EnumType.STRING)
    private TariffTimeTerm tariffTerm;
}
