namespace Brizco.Domain.Entities.Routine;

public partial class Routine
{
    public static Routine Create(string name, string description, Guid complexId)
    {
        return new Routine(name, description, complexId);
    }

    public ShiftRoutine AddShift(Guid shiftId)
    {
        var shift = new ShiftRoutine(this.Id, shiftId);
        this.Shifts.Add(shift);
        return shift;
    }
}