package com.mvrent.carrental.model;

import jakarta.persistence.*;
import jakarta.validation.constraints.*;
import lombok.*;

/**
 * The single rental company that owns this installation. One row only (id = 1).
 * Branding here is applied to the customer page and exported reports.
 */
@Entity
@Table(name = "organization")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Organization {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotBlank
    private String name;

    private String legalName;

    private String logoUrl;

    private String address;

    private String gstNumber;

    @Email
    private String contactEmail;

    private String phone;

    @NotBlank
    @Builder.Default
    private String currencyCode = "INR";
}
