18 lines
401 B
C#
18 lines
401 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace TicketOffice.Models;
|
|
|
|
public class Ticket
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[ForeignKey("User")]
|
|
public int UserId { get; set; }
|
|
public User User { get; set; }
|
|
|
|
[ForeignKey("Route")]
|
|
public int RouteId { get; set; }
|
|
public Route Route { get; set; }
|
|
} |