Changed schedule datatype into the schedule domain.
Moved the check constraints on the table to the domain.

Added comments on many objects.