mirror of
https://github.com/guilhermewerner/site-pi
synced 2025-06-16 13:54:20 +00:00
Initial commit
This commit is contained in:
22
SitePi/Models/Quiz.cs
Normal file
22
SitePi/Models/Quiz.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SitePi.Models;
|
||||
|
||||
namespace SitePi.Models
|
||||
{
|
||||
public class Quiz
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
public List<Question> Questions { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user