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