Add Shop / ShopCategory

This commit is contained in:
VegaZ
2018-10-15 17:04:40 +02:00
parent e25af059a4
commit 529145d2c1
5 changed files with 75 additions and 2 deletions

View File

@@ -19,7 +19,11 @@ namespace reallife_gamemode.Server.Entities
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[ForeignKey("Shop")]
public int ShopId { get; set; }
public Shop Shop { get; set; }
public VehicleHash Model { get; set; }
[StringLength(32)]
public string ModelName { get; set; }