mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-11 16:28:50 -07:00
22 lines
518 B
C#
22 lines
518 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace sodoff.Model;
|
|
|
|
[Index(nameof(UserId))]
|
|
[Index(nameof(VikingId))]
|
|
public class PairData {
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
public int PairId { get; set; }
|
|
|
|
public string? UserId { get; set; }
|
|
|
|
public string? VikingId { get; set; }
|
|
|
|
public virtual ICollection<Pair> Pairs { get; set; }
|
|
}
|