package com.sikey.wa04.business.infrastructure.dto.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "tb_map_trajectory_poi")
@Accessors(chain = true)
public class MapTrajectoryPoiModel extends BaseModel {
    @Id
    @Column(name = "trajectory_id", nullable = false)
    private Long trajectoryId;

    @Size(max = 125)
    @Column(name = "`desc`", nullable = false, length = 125)
    private String desc;

    @Size(max = 125)
    @Column(name = "poi", nullable = false, length = 125)
    private String poi;

    @Size(max = 125)
    @Column(name = "country", length = 125)
    private String country;

    @Size(max = 125)
    @Column(name = "province", length = 125)
    private String province;

    @Size(max = 125)
    @Column(name = "city", length = 125)
    private String city;

    @Size(max = 125)
    @Column(name = "caty_code", length = 125)
    private String catyCode;

    @Size(max = 125)
    @Column(name = "ad_code", length = 125)
    private String adCode;

    @Size(max = 125)
    @Column(name = "road", length = 125)
    private String road;

    @Column(name = "deleted_at")
    private Instant deletedAt;

}