package com.rehome.jpahefengweather.entity;


import jakarta.persistence.*;
import lombok.Data;
import org.hibernate.annotations.Proxy;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import java.io.Serializable;
import java.util.Date;


@Data
@Entity
//@Table(name="t_users")
public class ForecastWeather 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;
}