using System.ComponentModel.DataAnnotations.Schema; using SQLite; namespace WguApp.Models; [SQLite.Table("Courses")] public class Course { [PrimaryKey, AutoIncrement] public int Id { get; set; } public int TermId { get; set; } public string Name { get; set; } = string.Empty; public DateTime StartDate { get; set; } public DateTime EndDate { get; set; } public CourseStatus Status { get; set; } public string InstructorName { get; set; } = string.Empty; public string InstructorPhone { get; set; } = string.Empty; public string InstructorEmail { get; set; } = string.Empty; public bool StartNotifCheck { get; set; } = false; public int StartNotifId { get; set; } public bool EndNotifCheck { get; set; } = false; public int EndNotifId { get; set; } public string Notes { get; set; } = string.Empty; public Course() { } public Course(int termId, string name, DateTime startDate, DateTime endDate, CourseStatus status, string instructorName, string instructorPhone, string instructorEmail) { TermId = termId; Name = name; StartDate = startDate; EndDate = endDate; Status = status; InstructorName = instructorName; InstructorPhone = instructorPhone; InstructorEmail = instructorEmail; } } public enum CourseStatus { InProgress, Completed, Dropped, Planned }