18 lines
438 B
C#
18 lines
438 B
C#
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;
|
|
}
|
|
}
|