package at.procon.dip.domain.time.entity.leitstand;

import at.procon.dip.architecture.SchemaNames;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Index;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(schema = SchemaNames.TIME, name = "ls_organization", indexes = {
        @Index(name = "idx_ls_organization_upd", columnList = "upd"),
        @Index(name = "idx_ls_organization_name", columnList = "name"),
        @Index(name = "idx_ls_organization_org_nr", columnList = "org_nr")
})
@Getter @Setter @NoArgsConstructor
public class LeitstandOrganization extends AbstractLeitstandDbkEntity {
    @Column(name = "betreu", length = 2) private String betreu;
    @Column(name = "name", length = 255) private String name;
    @Column(name = "street", length = 50) private String street;
    @Column(name = "postal_code", length = 6) private String postalCode;
    @Column(name = "city", length = 50) private String city;
    @Column(name = "phone", length = 30) private String phone;
    @Column(name = "fax", length = 30) private String fax;
    @Column(name = "email", length = 50) private String email;
    @Column(name = "org_nr") private Integer orgNumber;
    @Column(name = "short_name", length = 30) private String shortName;
}
