21 lines
548 B
C#
21 lines
548 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BHServer.Models
|
|
{
|
|
public class Province
|
|
{
|
|
[Key]
|
|
public int id { get; set; }
|
|
[Required]
|
|
public string name { get; set; }
|
|
[Required]
|
|
public int faction { get; set; } // 0 - Neutral, 1 - Allies, 2 - Axis
|
|
[Required]
|
|
public int multiplier { get; set; } // 0-1
|
|
[Required]
|
|
public string ats { get; set; } // Json String
|
|
[Required]
|
|
public int state { get; set; } // 0 - Peace, 1 - War
|
|
}
|
|
}
|