sos
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ConsoleApp1.data.model;
|
||||
|
||||
[Table("stat")]
|
||||
[Index (nameof(Name), IsUnique = true)]
|
||||
public class Stat
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Column("stat_id")]
|
||||
public int Id { get; set; }
|
||||
[Column("name")]
|
||||
public string Name { get; set; }
|
||||
[Column("pokemon_HP")]
|
||||
public int HP { get; set; }
|
||||
[Column("pokemon_Attack")]
|
||||
public int Attack { get; set; }
|
||||
[Column("pokemon_Defense")]
|
||||
public int Defense { get; set; }
|
||||
[Column("pokemon_SpecialAttack")]
|
||||
public int SpecialAttack { get; set; }
|
||||
[Column("pokemon_SpecialDefense")]
|
||||
public int SpecialDefense { get; set; }
|
||||
[Column("pokemon_Speed")]
|
||||
public int Speed { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user