package com.pressing.domain.site;

import com.pressing.common.entity.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "sites")
public class Site extends BaseEntity {

    // Raison sociale (Obligatoire)
    @Column(nullable = false, length = 160)
    private String name;

    // Code de l'entreprise (Unique)
    @Column(unique = true, length = 40)
    private String code;

    // Contacts
    @Column(length = 40)
    private String phone;

    // Email (Optionnel)
    @Column(length = 180)
    private String email;

    // Adresse
    @Column(length = 255)
    private String address;

    // Logo de l'entreprise (URL / chemin du fichier)
    @Column(length = 255)
    private String logoUrl;

    // Domaine d'activité (PRESSING, HOTEL, etc.)
    @Column(length = 40)
    private String activityDomain;

    @Column(nullable = false)
    private boolean active = true;
}



/*package com.pressing.domain.site;

import com.pressing.common.entity.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "sites")
public class Site extends BaseEntity {

    @Column(nullable = false, length = 160)
    private String name;

    @Column(length = 40)
    private String code;

    @Column(length = 40)
    private String phone;

    @Column(length = 40)
    private String phoneSecondary;

    @Column(length = 180)
    private String email;

    @Column(length = 255)
    private String address;

    @Column(length = 80)
    private String city;

 
    @Column(nullable = false, length = 40)
    private String activityDomain = "PRESSING";

    @Column(nullable = false)
    private boolean active = true;

    @Column
    private Double defaultTaxRate = 18.0;
}
*/