mirror of
https://github.com/SamueleLorefice/isleBot.git
synced 2026-01-15 06:03:42 +00:00
Adeed base database build
This commit is contained in:
11
Card.cs
11
Card.cs
@@ -1,12 +1,17 @@
|
||||
namespace IsleBot;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
public class Card
|
||||
{
|
||||
namespace IsleBot;
|
||||
|
||||
public class Card {
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int Attack { get; set; }
|
||||
public int Defense { get; set; }
|
||||
public int MaxHealth { get; set; }
|
||||
public int CurrentHealth { get; set; }
|
||||
public User Owner { get; set; }
|
||||
|
||||
public override string ToString() {
|
||||
return $"{Name} ATK: {Attack} DEF: {Defense} HP: {CurrentHealth}/{MaxHealth}";
|
||||
|
||||
Reference in New Issue
Block a user