using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace survey_beta.Models
{
    public class Question
    {
        public string? Id { get; set; } = Guid.NewGuid().ToString();
        public string? Content { get; set; }
        public string? Text { get; set; }
        public string? Type { get; set; }
        public string? SurveyId { get; set; }
        [JsonIgnore]
        public Survey? Survey { get; set; }
        public ICollection<Choice> Choices { get; set; } = new List<Choice>();
    }
}
