Added some EFCore stuff to webapi
This commit is contained in:
12
WebAPI/Data/Models/BaseEntity.cs
Normal file
12
WebAPI/Data/Models/BaseEntity.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace WebAPI.Data.Models
|
||||
{
|
||||
public class BaseEntity
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
||||
7
WebAPI/Data/Models/User.cs
Normal file
7
WebAPI/Data/Models/User.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace WebAPI.Data.Models
|
||||
{
|
||||
public class User : BaseEntity
|
||||
{
|
||||
public int PterodactylUserId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user