package de.assecutor.votianlt.model;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "customers")
public class Customer {
    @Id
    private ObjectId id;

    @Field("title")
    private String title;

    @Field("company_name")
    private String companyName;

    @Field("firstname")
    private String firstname;

    @Field("last_name")
    private String lastName;

    @Field("telephone")
    private String telephone;

    @Field("fax")
    private String fax;

    @Field("mail")
    private String mail;

    @Field("street")
    private String street;

    @Field("house_number")
    private String houseNumber;

    @Field("address_addition")
    private String addressAddition;

    @Field("zip")
    private String zip;

    @Field("city")
    private String city;

    @Field("created_by")
    private ObjectId createdBy;

    @Field("owner")
    private ObjectId owner;

    @Field("internal")
    private boolean internal;

    @Field("usrId")
    private Integer usrId;
}