sos
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ConsoleApp1.data.model;
|
||||
[Table("ability")]
|
||||
[Index(nameof(Name), IsUnique = true) ]
|
||||
public class Ability
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column("ability_id")]
|
||||
public int Id { get; set; }
|
||||
[Column("ability_name")]
|
||||
public string Name { get; set; }
|
||||
[Column("ability_short_effect")]
|
||||
public string ShortEffect { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user