using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace ReallifeGamemode.Database.Entities { public class CannabisPlant { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } public DateTime PlantDate { get; set; } public float X { get; set; } public float Y { get; set; } public float Z { get; set; } public bool Harvested { get; set; } public User PlantedBy { get; set; } [ForeignKey(nameof(PlantedBy))] public int PlantedById { get; set; } } }