using System;
using System.Collections.Generic;

namespace survey_beta.Models
{
    public class Survey
    {
        public string? Id { get; set; } = Guid.NewGuid().ToString();
        public string? Title { get; set; }
        public string? Description { get; set; }
        public string? Category { get; set; }
        public DateTime? ExpirationDate { get; set; }
        public bool IsPublished { get; set; }
        public string? AuthorId { get; set; }
        public User? Author { get; set; }
        public ICollection<Question>? Questions { get; set; }
    }
}
