22 lines
592 B
C#
22 lines
592 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BHServer.Models
|
|
{
|
|
public class Province
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
public int ProvinceId { 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
|
|
}
|
|
}
|