package com.example.lab2;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "phones")
public class Phone implements Serializable {
    @PrimaryKey(autoGenerate = true)
    public int id;

    @NonNull
    public String producer;
    @NonNull
    public String model;
    public String version;
    public String website;

    public Phone(@NonNull String producer, @NonNull String model, String version, String website) {
        this.producer = producer;
        this.model = model;
        this.version = version;
        this.website = website;
    }
}
