16160f6424
Initial version of the data model Includes EF initialization and migrations EF migrations are applied on application start
19 lines
508 B
C#
19 lines
508 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TournamentOrganizer.Models;
|
|
|
|
public class Player
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
public string Name { get; set; } = "Example Tournament";
|
|
public string Contact { get; set; } = "discordname";
|
|
public int TeamId { get; set; }
|
|
|
|
public required Team Team { get; set; }
|
|
|
|
} |