Add Shop / ShopCategory
This commit is contained in:
31
Server/Entities/Shop.cs
Normal file
31
Server/Entities/Shop.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using reallife_gamemode.Server.Entities;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Entities Shop (Shop.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace reallife_gamemode.Server.Entities
|
||||
{
|
||||
public class Shop
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public string ShopName { get; set; }
|
||||
public float Balance { get; set; }
|
||||
|
||||
[ForeignKey("ShopCategory")]
|
||||
public int Category { get; set; }
|
||||
public ShopCategory ShopCategory { get; set; }
|
||||
|
||||
public int Owner { get; set; }
|
||||
public bool Active { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user