Adding final project to dev branch

This commit is contained in:
2025-12-19 18:53:21 -06:00
commit fd2ab3e14c
62 changed files with 4730 additions and 0 deletions

42
WguApp/Models/Course.cs Normal file
View File

@@ -0,0 +1,42 @@
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
}