Genesis Game Server Project Setup
This commit is contained in:
17
GameServer/Models/CharacterModel.cs
Normal file
17
GameServer/Models/CharacterModel.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace GameServer.Models
|
||||
{
|
||||
[Table("tb_character")]
|
||||
public class CharacterModel
|
||||
{
|
||||
[Key]
|
||||
[Column("character_code")]
|
||||
public string CharacterCode { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[Column("character_type")]
|
||||
public string CharacterType { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user