DSC-399

DSC-399: notes -> commentsInternal, publicNotes -> commentsExternal, restrictionType -> constraint