package com.rehome.jpahefengweather.entity;


import lombok.Data;
import jakarta.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Data
@Entity
//@Table(name="t_users")
public class NowWeather implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String locationId;

    private String province;

    private String city ;

    private String locationNameZh;

    //存放长文本
    @Column(columnDefinition = "TEXT")
    private String weather;

    private String weatherDate;

//    @CreatedDate
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createDate;

//    @LastModifiedDate
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdateDate;
}