hanf continuation
This commit is contained in:
30
ReallifeGamemode.Database/Entities/CannabisPlant.cs
Normal file
30
ReallifeGamemode.Database/Entities/CannabisPlant.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user