начал

This commit is contained in:
328p
2026-09-17 15:54:12 +03:00
parent 2f6bdf2c72
commit e6a2231e89
15 changed files with 485 additions and 1 deletions
@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace PokedexApi.Data.Models;
[Table("pokemonAbility")]
[Index(nameof(Name), IsUnique = true)]
public class PokemonAbility
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Column("pokemon_ability_id")]
public int AbilityId { get; set; }
[Column("pokemon_ability_name")]
[Required]
public string Name { get; set; }
[Column("IsHidden")]
[Required]
public bool IsHidden { get; set; }
}