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

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.ColumnDefault;

import java.time.Instant;
import java.time.LocalDate;

@Getter
@Setter
@Entity
@Table(name = "tb_map_weather")
public class MapWeatherModel extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Size(max = 36)
    @Column(name = "id", length = 36)
    private String id;

    @Size(max = 25)
    @NotNull
    @Column(name = "city_id", nullable = false, length = 25)
    private String cityId;

    @Column(name = "date")
    private String date;

    @Size(max = 25)
    @NotNull
    @Column(name = "text_code", nullable = false, length = 25)
    private String textCode;

    @NotNull
    @Column(name = "high", nullable = false)
    private Integer high;

    @Column(name = "low")
    private Integer low;

    @Column(name = "now")
    private Integer now;

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

}