package com.example.pap_teste.models;

import com.google.firebase.Timestamp;
import java.util.Date;

public class User {
    private String id;
    private String name;
    private String email;
    private String photoURL;
    private Timestamp createdAt;

    public User() {}

    public User(String id, String name, String email, String photoURL) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.photoURL = photoURL;
        this.createdAt = new Timestamp(new Date());
    }

    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }
    public String getPhotoURL() { return photoURL; }
    public void setPhotoURL(String photoURL) { this.photoURL = photoURL; }
    public Timestamp getCreatedAt() { return createdAt; }
    public void setCreatedAt(Timestamp createdAt) { this.createdAt = createdAt; }
}
